From e890d1e5ac258354b291589cd258e9aef02c2e45 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 9 Jul 2026 18:33:52 +0100 Subject: [PATCH] Clippy! --- compiler-core/src/codegen.rs | 6 +++--- compiler-core/src/type_/pattern.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler-core/src/codegen.rs b/compiler-core/src/codegen.rs index 09adb2fe7..d561ba021 100644 --- a/compiler-core/src/codegen.rs +++ b/compiler-core/src/codegen.rs @@ -2,15 +2,15 @@ // SPDX-FileCopyrightText: 2020 The Gleam contributors use crate::{ - Result, build::{ - ErlangAppCodegenConfiguration, Module, module_erlang_name, package_compiler::StdlibPackage, + module_erlang_name, package_compiler::StdlibPackage, ErlangAppCodegenConfiguration, Module, }, config::PackageConfig, erlang, io::FileSystemWriter, javascript::{self, ModuleConfig}, line_numbers::LineNumbers, + Result, }; use ecow::EcoString; use erlang::escape_atom_string; @@ -105,7 +105,7 @@ impl<'a> ErlangApp<'a> { format!(" {{{key}, {value}}},\n") } - let path = self.output_directory.join(format!("{}.app", &config.name)); + let path = self.output_directory.join(format!("{}.app", config.name)); let start_module = match config.erlang.application_start_module.as_ref() { None => "".into(), diff --git a/compiler-core/src/type_/pattern.rs b/compiler-core/src/type_/pattern.rs index 59d1ccf94..2ec4b1d4a 100644 --- a/compiler-core/src/type_/pattern.rs +++ b/compiler-core/src/type_/pattern.rs @@ -422,7 +422,7 @@ impl<'a, 'b> PatternTyper<'a, 'b> { ) -> TypedPattern { // Any variables from other parts of the pattern are no longer in scope. // Only variables from the bit array pattern itself can be used. - for (_, variable) in self.variables.iter_mut() { + for variable in self.variables.values_mut() { variable.scope = Scope::OtherPattern; } -- 2.51.2