code layout changes only
This commit is contained in:
parent
10175618d2
commit
a03eff51af
|
@ -167,7 +167,11 @@ fn grind_parse_args(
|
||||||
for sw in starts_with_args {
|
for sw in starts_with_args {
|
||||||
let args: Vec<&str> = sw.split(':').collect();
|
let args: Vec<&str> = sw.split(':').collect();
|
||||||
grind_matches.push(GrindMatch {
|
grind_matches.push(GrindMatch {
|
||||||
starts: if ignore_case { args[0].to_lowercase() } else { args[0].to_string() },
|
starts: if ignore_case {
|
||||||
|
args[0].to_lowercase()
|
||||||
|
} else {
|
||||||
|
args[0].to_string()
|
||||||
|
},
|
||||||
ends: "".to_string(),
|
ends: "".to_string(),
|
||||||
count: AtomicU64::new(args[1].parse::<u64>().unwrap()),
|
count: AtomicU64::new(args[1].parse::<u64>().unwrap()),
|
||||||
});
|
});
|
||||||
|
@ -176,15 +180,27 @@ fn grind_parse_args(
|
||||||
let args: Vec<&str> = ew.split(':').collect();
|
let args: Vec<&str> = ew.split(':').collect();
|
||||||
grind_matches.push(GrindMatch {
|
grind_matches.push(GrindMatch {
|
||||||
starts: "".to_string(),
|
starts: "".to_string(),
|
||||||
ends: if ignore_case { args[0].to_lowercase() } else { args[0].to_string() },
|
ends: if ignore_case {
|
||||||
|
args[0].to_lowercase()
|
||||||
|
} else {
|
||||||
|
args[0].to_string()
|
||||||
|
},
|
||||||
count: AtomicU64::new(args[1].parse::<u64>().unwrap()),
|
count: AtomicU64::new(args[1].parse::<u64>().unwrap()),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
for swew in starts_and_ends_with_args {
|
for swew in starts_and_ends_with_args {
|
||||||
let args: Vec<&str> = swew.split(':').collect();
|
let args: Vec<&str> = swew.split(':').collect();
|
||||||
grind_matches.push(GrindMatch {
|
grind_matches.push(GrindMatch {
|
||||||
starts: if ignore_case { args[0].to_lowercase() } else { args[0].to_string() },
|
starts: if ignore_case {
|
||||||
ends: if ignore_case { args[1].to_lowercase() } else { args[1].to_string() },
|
args[0].to_lowercase()
|
||||||
|
} else {
|
||||||
|
args[0].to_string()
|
||||||
|
},
|
||||||
|
ends: if ignore_case {
|
||||||
|
args[1].to_lowercase()
|
||||||
|
} else {
|
||||||
|
args[1].to_string()
|
||||||
|
},
|
||||||
count: AtomicU64::new(args[2].parse::<u64>().unwrap()),
|
count: AtomicU64::new(args[2].parse::<u64>().unwrap()),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue