aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand/src
diff options
context:
space:
mode:
authorMaan2003 <[email protected]>2021-06-13 04:57:19 +0100
committerMaan2003 <[email protected]>2021-06-13 04:57:19 +0100
commit705f7e6e2644bf5de4255bc05ea8d9d5027c29b0 (patch)
tree1bf26189989bb871a86ec4ee612c978be5e5f883 /crates/hir_expand/src
parent6cc6dee9e96d55dbbd8593523551a9981a691147 (diff)
clippy::clone_on_copy
Diffstat (limited to 'crates/hir_expand/src')
-rw-r--r--crates/hir_expand/src/proc_macro.rs1
1 files changed, 0 insertions, 1 deletions
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 {
45 let proc_macro = krate_graph[self.krate] 45 let proc_macro = krate_graph[self.krate]
46 .proc_macro 46 .proc_macro
47 .get(id.0 as usize) 47 .get(id.0 as usize)
48 .clone()
49 .ok_or_else(|| err!("No derive macro found."))?; 48 .ok_or_else(|| err!("No derive macro found."))?;
50 49
51 // Proc macros have access to the environment variables of the invoking crate. 50 // Proc macros have access to the environment variables of the invoking crate.