From 3d9dba251eb40af7d771c6f2148eb19f874bf76c Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 16 Jul 2020 19:48:58 -0400 Subject: [PATCH] Fix new Rust 1.45 clippy warning --- compiler/constrain/src/uniq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/constrain/src/uniq.rs b/compiler/constrain/src/uniq.rs index 7c147ba41f..5bfdc72b01 100644 --- a/compiler/constrain/src/uniq.rs +++ b/compiler/constrain/src/uniq.rs @@ -2397,7 +2397,7 @@ fn fix_mutual_recursive_alias(typ: &mut Type, attribute: &Bool) { fn fix_mutual_recursive_alias_help(rec_var: Variable, attribute: &Type, into_type: &mut Type) { if into_type.contains_variable(rec_var) { if let Type::Apply(Symbol::ATTR_ATTR, args) = into_type { - std::mem::replace(&mut args[0], attribute.clone()); + args[0] = attribute.clone(); fix_mutual_recursive_alias_help_help(rec_var, attribute, &mut args[1]); }