clippy::clone_on_copy

This commit is contained in:
Maan2003 2021-06-13 09:27:19 +05:30
parent 6cc6dee9e9
commit 705f7e6e26
No known key found for this signature in database
GPG key ID: E9AF024BA63C70ED
7 changed files with 6 additions and 7 deletions

View file

@ -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.