diff --git a/tooling/nargo_fmt/src/formatter/use_tree_merge.rs b/tooling/nargo_fmt/src/formatter/use_tree_merge.rs index 5e2c8f9a456..a679e026435 100644 --- a/tooling/nargo_fmt/src/formatter/use_tree_merge.rs +++ b/tooling/nargo_fmt/src/formatter/use_tree_merge.rs @@ -181,7 +181,7 @@ impl Ord for Segment { // Case-insensitive comparison for plain segments let ordering = self_string.to_lowercase().cmp(&other_string.to_lowercase()); if ordering == Ordering::Equal { - self_string.cmp(&other_string) + self_string.cmp(other_string) } else { ordering }