mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-08-16 17:30:21 +03:00
fix: formatting in src/command.rs
This commit is contained in:
parent
ef1263279d
commit
981db9d102
@ -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.,
|
||||
|
Loading…
Reference in New Issue
Block a user