Fix some dumb clipply

This commit is contained in:
Peter Ammon
2026-02-15 11:25:40 -08:00
parent 7174ebbb4b
commit d0a95e4fde

View File

@@ -320,7 +320,7 @@ fn serialize_with_vars(vars: &VarTable) -> Vec<u8> {
// Preserve legacy behavior by sorting the values first
let mut cloned: Vec<(&wstr, &EnvVar)> =
vars.iter().map(|(key, var)| (key.as_ref(), var)).collect();
cloned.sort_by(|(lkey, _), (rkey, _)| lkey.cmp(rkey));
cloned.sort_by_key(|(key, _)| *key);
for (key, var) in cloned {
// Append the entry. Note that append_file_entry may fail, but that only affects one