diff --git a/compiler-core/src/nix/expression.rs b/compiler-core/src/nix/expression.rs index 635d47f7c..99b1f0b9d 100644 --- a/compiler-core/src/nix/expression.rs +++ b/compiler-core/src/nix/expression.rs @@ -933,7 +933,8 @@ impl Generator<'_> { should_be_equal: bool, ) -> Output<'a> { // Nix's equality is always structural. - return self.print_bin_op(left, right, if should_be_equal { "==" } else { "!=" }); + self.print_bin_op(left, right, if should_be_equal { "==" } else { "!=" }) + // Inherited code (equality was not always structural): // if is_nix_scalar(left.type_()) { // } // Other types must be compared using structural equality diff --git a/compiler-core/src/nix/pattern.rs b/compiler-core/src/nix/pattern.rs index efd0d95dd..08c5ce8be 100644 --- a/compiler-core/src/nix/pattern.rs +++ b/compiler-core/src/nix/pattern.rs @@ -838,7 +838,7 @@ pub struct CompiledPattern<'a> { pub assignments: Vec>, } -impl<'a> CompiledPattern<'a> { +impl CompiledPattern<'_> { pub fn has_assignments(&self) -> bool { !self.assignments.is_empty() }