mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
fix: formatting in src/command.rs
This commit is contained in:
1 parent
ef1263279d
commit
981db9d102
1 file changed
+1
-4
+1
-4
@@ -107,10 +107,7 @@ impl<'a> Command<'a> {
|
||||
let mut result = String::new();
|
||||
let mut replacements = BTreeMap::<String, String>::new();
|
||||
for (param_name, param_value) in &self.parameters {
|
||||
replacements.insert(
|
||||
format!("{{{param_name}}}"),
|
||||
param_value.to_string(),
|
||||
);
|
||||
replacements.insert(format!("{{{param_name}}}"), param_value.to_string());
|
||||
}
|
||||
let mut remaining = original;
|
||||
// Manually replace consecutive occurrences to avoid double-replacing: e.g.,
|
||||
|
||||
Reference in new issue
Block a user