mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
Apply lints
This commit is contained in:
parent
084393c326
commit
a4d7ee33c1
@ -1642,7 +1642,7 @@ fn constrain_function_def(
|
||||
AnnotationSource::TypedBody {
|
||||
region: annotation.region,
|
||||
},
|
||||
ret_type.clone(),
|
||||
ret_type,
|
||||
);
|
||||
|
||||
let ret_constraint = constrain_expr(
|
||||
@ -2366,7 +2366,7 @@ fn constrain_typed_def(
|
||||
AnnotationSource::TypedBody {
|
||||
region: annotation.region,
|
||||
},
|
||||
ret_type.clone(),
|
||||
ret_type,
|
||||
);
|
||||
|
||||
let ret_constraint = constrain_expr(
|
||||
@ -3140,7 +3140,7 @@ fn constraint_recursive_function(
|
||||
env,
|
||||
loc_body_expr.region,
|
||||
&loc_body_expr.value,
|
||||
NoExpectation(ret_type.clone()),
|
||||
NoExpectation(ret_type),
|
||||
);
|
||||
let expr_con = attach_resolution_constraints(constraints, env, expr_con);
|
||||
|
||||
|
@ -347,7 +347,7 @@ pub fn constrain_pattern(
|
||||
// Link the free num var with the int var and our expectation.
|
||||
let int_type = builtins::num_int(Type::Variable(precision_var));
|
||||
|
||||
let num_type_index = constraints.push_type(num_type.clone());
|
||||
let num_type_index = constraints.push_type(num_type);
|
||||
|
||||
state.constraints.push({
|
||||
let expected_index =
|
||||
|
@ -1338,7 +1338,7 @@ fn solve(
|
||||
);
|
||||
|
||||
let payload_types = constraints.variables[types.indices()]
|
||||
.into_iter()
|
||||
.iter()
|
||||
.map(|v| Type::Variable(*v))
|
||||
.collect();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user