Apply lints

This commit is contained in:
Ayaz Hafiz 2022-10-24 18:23:36 -05:00
parent 084393c326
commit a4d7ee33c1
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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 =

View File

@ -1338,7 +1338,7 @@ fn solve(
);
let payload_types = constraints.variables[types.indices()]
.into_iter()
.iter()
.map(|v| Type::Variable(*v))
.collect();