mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Dependency and MSRV update (#934)
This commit is contained in:
1 parent
4b561defef
commit
4d073e08ae
7 files changed
+319
-485
No files matched your search
@@ -117,7 +117,7 @@ impl<'a> Scheduler<'a> {
|
||||
println!(
|
||||
"{} {}",
|
||||
comparator,
|
||||
&item.result.command_with_unused_parameters.magenta()
|
||||
item.result.command_with_unused_parameters.magenta()
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -135,7 +135,7 @@ impl<'a> Scheduler<'a> {
|
||||
} else {
|
||||
" ".into()
|
||||
},
|
||||
&item.result.command_with_unused_parameters,
|
||||
item.result.command_with_unused_parameters,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -158,7 +158,9 @@ impl<'a> Commands<'a> {
|
||||
});
|
||||
let args: Vec<_> = args.map(|v| v.as_str()).collect::<Vec<_>>();
|
||||
let param_names_and_values: Vec<(&str, Vec<String>)> = args
|
||||
.chunks_exact(2)
|
||||
.as_chunks::<2>()
|
||||
.0
|
||||
.iter()
|
||||
.map(|pair| {
|
||||
let name = pair[0];
|
||||
let list_str = pair[1];
|
||||
@@ -169,7 +171,7 @@ impl<'a> Commands<'a> {
|
||||
let duplicates =
|
||||
Self::find_duplicates(param_names_and_values.iter().map(|(name, _)| *name));
|
||||
if !duplicates.is_empty() {
|
||||
bail!("Duplicate parameter names: {}", &duplicates.join(", "));
|
||||
bail!("Duplicate parameter names: {}", duplicates.join(", "));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ impl MarkupExporter for OrgmodeExporter {
|
||||
format!(
|
||||
"| {} | {} |\n",
|
||||
cells.first().unwrap(),
|
||||
&cells[1..].join(" | ")
|
||||
cells[1..].join(" | ")
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
/// [1] Mytkowicz, 2009. Producing Wrong Data Without Doing Anything Obviously Wrong!.
|
||||
/// Sigplan Notices - SIGPLAN. 44. 265-276. 10.1145/1508284.1508275.
|
||||
pub fn value() -> String {
|
||||
"X".repeat(rand::random::<usize>() % 4096usize)
|
||||
"X".repeat(rand::random_range(0..4096))
|
||||
}
|
||||
Reference in new issue
Block a user