mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
clippy::redundant_clone fixes
This commit is contained in:
parent
8b049ec393
commit
8206939fed
7 changed files with 22 additions and 27 deletions
|
@ -197,7 +197,7 @@ fn eager_macro_recur(
|
|||
macro_resolver: &dyn Fn(ast::Path) -> Option<MacroDefId>,
|
||||
mut diagnostic_sink: &mut dyn FnMut(mbe::ExpandError),
|
||||
) -> Result<SyntaxNode, ErrorEmitted> {
|
||||
let original = curr.value.clone().clone_for_update();
|
||||
let original = curr.value.clone_for_update();
|
||||
|
||||
let children = original.descendants().filter_map(ast::MacroCall::cast);
|
||||
let mut replacements = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue