mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-30 16:40:18 +00:00
Fix remaining clippy warnings
This commit is contained in:
1 parent
85730b3f0f
commit
068bebb4e6
7 files changed
+44
-24
No files matched your search
+4
-2
@@ -97,7 +97,8 @@ fn build_hyperfine_options<'a>(
|
||||
matches
|
||||
.value_of(param)
|
||||
.map(|n| {
|
||||
u64::from_str_radix(n, 10).map_err(|e| OptionsError::NumericParsingError(param, e))
|
||||
n.parse::<u64>()
|
||||
.map_err(|e| OptionsError::NumericParsingError(param, e))
|
||||
})
|
||||
.transpose()
|
||||
};
|
||||
@@ -270,7 +271,8 @@ fn build_commands<'a>(matches: &'a ArgMatches<'_>) -> Vec<Command<'a>> {
|
||||
'outer: loop {
|
||||
let name = command_names
|
||||
.get(i)
|
||||
.or_else(|| command_names.get(0)).copied();
|
||||
.or_else(|| command_names.get(0))
|
||||
.copied();
|
||||
i += 1;
|
||||
|
||||
let (command_index, params_indices) = index.split_first().unwrap();
|
||||
|
||||
Reference in new issue
Block a user