From 705f7e6e2644bf5de4255bc05ea8d9d5027c29b0 Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Sun, 13 Jun 2021 09:27:19 +0530 Subject: clippy::clone_on_copy --- crates/hir_expand/src/proc_macro.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'crates/hir_expand') diff --git a/crates/hir_expand/src/proc_macro.rs b/crates/hir_expand/src/proc_macro.rs index 3ad2d3bf7..025e10239 100644 --- a/crates/hir_expand/src/proc_macro.rs +++ b/crates/hir_expand/src/proc_macro.rs @@ -45,7 +45,6 @@ impl ProcMacroExpander { let proc_macro = krate_graph[self.krate] .proc_macro .get(id.0 as usize) - .clone() .ok_or_else(|| err!("No derive macro found."))?; // Proc macros have access to the environment variables of the invoking crate. -- cgit v1.2.3