From 87bd041620ff3fdc98c5d2ec0f1d3907ca43767c Mon Sep 17 00:00:00 2001 From: collin Date: Thu, 21 Jan 2021 17:05:16 -0500 Subject: [PATCH] cargo +nightly clippy --- ast/src/annotation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast/src/annotation.rs b/ast/src/annotation.rs index 5b3060afc0..323dd6143f 100644 --- a/ast/src/annotation.rs +++ b/ast/src/annotation.rs @@ -40,7 +40,7 @@ pub fn load_annotation( Definition::Function(function) => match ast_annotation.name { AnnotationName::Test(_) => { let ident = Identifier::from(function.identifier.clone()); - _functions.remove(&ident.clone()); + _functions.remove(&ident); let test_function = leo_grammar::functions::TestFunction::from(function); let test = TestFunction::from(test_function);