diff --git a/crates/cairo-lang-utils/src/unordered_hash_map.rs b/crates/cairo-lang-utils/src/unordered_hash_map.rs index cb54d542889..17c6b87c3b2 100644 --- a/crates/cairo-lang-utils/src/unordered_hash_map.rs +++ b/crates/cairo-lang-utils/src/unordered_hash_map.rs @@ -261,7 +261,7 @@ impl UnorderedHashMap { where Key: Ord, { - self.0.into_iter().sorted_by(|(lhs, _), (rhs, _)| lhs.cmp(rhs)) + self.0.into_iter().sorted_by(|(key_a, _), (key_b, _)| key_a.cmp(key_b)) } /// Iterates the map in an ascending order of the keys produced by the given function `f`.