Skip to content

Commit 4e1e353

Browse files
chore: Re-add sort_by_cached_key
1 parent 95be0fa commit 4e1e353

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/stackable-operator/src/v2/builder/pod/container.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl From<EnvVarSet> for Vec<EnvVar> {
181181
EnvVarDependencyResolver::new(&value, ENV_VAR_DEPENDENCY_RESOLVER_MAX_RECURSION_DEPTH);
182182

183183
let mut vec: Self = value.0.values().cloned().collect();
184-
vec.sort_by_key(|env_var| env_var_closure.sort_key(env_var));
184+
vec.sort_by_cached_key(|env_var| env_var_closure.sort_key(env_var));
185185
vec
186186
}
187187
}

0 commit comments

Comments
 (0)