From 78e0886eb183e7ddd8fb43b83173d1560ea7f48d Mon Sep 17 00:00:00 2001 From: Folkert Date: Fri, 13 Nov 2020 01:42:31 +0100 Subject: [PATCH] clippy --- compiler/constrain/src/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/constrain/src/expr.rs b/compiler/constrain/src/expr.rs index c826a1ff76..e7d112faa4 100644 --- a/compiler/constrain/src/expr.rs +++ b/compiler/constrain/src/expr.rs @@ -1220,7 +1220,7 @@ fn constrain_def(env: &Env, def: &Def, body_con: Constraint) -> Constraint { ret_constraint, })), // "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(signature.clone(), *fn_var, std::file!(), std::line!()), Store(signature, expr_var, std::file!(), std::line!()),