mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Clippy
This commit is contained in:
parent
8dc92ccd97
commit
c80c842a93
5 changed files with 34 additions and 4 deletions
|
@ -35,7 +35,7 @@ pub fn add_numeric_bound_constr(
|
|||
));
|
||||
total_num_type
|
||||
}
|
||||
_ => RangedNumber(Box::new(total_num_type.clone()), range),
|
||||
_ => RangedNumber(Box::new(total_num_type), range),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ pub fn int_literal(
|
|||
Category::Int,
|
||||
region,
|
||||
),
|
||||
Eq(num_type, expected.clone(), Category::Int, region),
|
||||
Eq(num_type, expected, Category::Int, region),
|
||||
]);
|
||||
|
||||
exists(vec![num_var], And(constrs))
|
||||
|
|
|
@ -185,7 +185,7 @@ pub fn constrain_pattern(
|
|||
|
||||
let num_type = builtins::add_numeric_bound_constr(
|
||||
&mut state.constraints,
|
||||
num_type.clone(),
|
||||
num_type,
|
||||
bound,
|
||||
region,
|
||||
Category::Num,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue