mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Fix new Rust 1.45 clippy warning
This commit is contained in:
parent
2925706570
commit
3d9dba251e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
fn fix_mutual_recursive_alias_help(rec_var: Variable, attribute: &Type, into_type: &mut Type) {
|
||||||
if into_type.contains_variable(rec_var) {
|
if into_type.contains_variable(rec_var) {
|
||||||
if let Type::Apply(Symbol::ATTR_ATTR, args) = into_type {
|
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]);
|
fix_mutual_recursive_alias_help_help(rec_var, attribute, &mut args[1]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue