diff --git a/compiler/can/src/def.rs b/compiler/can/src/def.rs index 7e03f8e3b9..0e8a416627 100644 --- a/compiler/can/src/def.rs +++ b/compiler/can/src/def.rs @@ -423,7 +423,7 @@ pub fn sort_can_defs( let mut defined_symbols: Vec = Vec::new(); let mut defined_symbols_set: ImSet = ImSet::default(); - for symbol in can_defs_by_symbol.keys().into_iter() { + for symbol in can_defs_by_symbol.keys() { defined_symbols.push(*symbol); defined_symbols_set.insert(*symbol); } diff --git a/compiler/can/src/pattern.rs b/compiler/can/src/pattern.rs index 41aa49ca9a..7fa010d419 100644 --- a/compiler/can/src/pattern.rs +++ b/compiler/can/src/pattern.rs @@ -254,7 +254,7 @@ pub fn canonicalize_pattern<'a>( } Ok((int, bound)) => { let sign_str = if is_negative { "-" } else { "" }; - let int_str = format!("{}{}", sign_str, int.to_string()).into_boxed_str(); + let int_str = format!("{}{}", sign_str, int).into_boxed_str(); let i = match int { // Safety: this is fine because I128::MAX = |I128::MIN| - 1 IntValue::I128(n) if is_negative => IntValue::I128(-n), diff --git a/compiler/mono/src/ir.rs b/compiler/mono/src/ir.rs index 0e0c39019a..6a4c1e5449 100644 --- a/compiler/mono/src/ir.rs +++ b/compiler/mono/src/ir.rs @@ -3430,6 +3430,7 @@ pub fn with_hole<'a>( let mut field_symbols = Vec::with_capacity_in(fields.len(), env.arena); let mut can_fields = Vec::with_capacity_in(fields.len(), env.arena); + #[allow(clippy::enum_variant_names)] enum Field { // TODO: rename this since it can handle unspecialized expressions now too Function(Symbol, Variable),