fix: formatting in src/command.rs

This commit is contained in:
Hamir Mahal 2024-05-31 13:28:55 -07:00 committed by David Peter
parent ef1263279d
commit 981db9d102

View File

@ -107,10 +107,7 @@ impl<'a> Command<'a> {
let mut result = String::new(); let mut result = String::new();
let mut replacements = BTreeMap::<String, String>::new(); let mut replacements = BTreeMap::<String, String>::new();
for (param_name, param_value) in &self.parameters { for (param_name, param_value) in &self.parameters {
replacements.insert( replacements.insert(format!("{{{param_name}}}"), param_value.to_string());
format!("{{{param_name}}}"),
param_value.to_string(),
);
} }
let mut remaining = original; let mut remaining = original;
// Manually replace consecutive occurrences to avoid double-replacing: e.g., // Manually replace consecutive occurrences to avoid double-replacing: e.g.,