mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
clippy
This commit is contained in:
parent
70cba33fe4
commit
78e0886eb1
@ -1220,7 +1220,7 @@ fn constrain_def(env: &Env, def: &Def, body_con: Constraint) -> Constraint {
|
|||||||
ret_constraint,
|
ret_constraint,
|
||||||
})),
|
})),
|
||||||
// "the closure's type is equal to expected type"
|
// "the closure's type is equal to expected type"
|
||||||
Eq(fn_type.clone(), expected.clone(), Category::Lambda, region),
|
Eq(fn_type, expected, Category::Lambda, region),
|
||||||
// Store type into AST vars. We use Store so errors aren't reported twice
|
// Store type into AST vars. We use Store so errors aren't reported twice
|
||||||
Store(signature.clone(), *fn_var, std::file!(), std::line!()),
|
Store(signature.clone(), *fn_var, std::file!(), std::line!()),
|
||||||
Store(signature, expr_var, std::file!(), std::line!()),
|
Store(signature, expr_var, std::file!(), std::line!()),
|
||||||
|
Loading…
Reference in New Issue
Block a user