mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
don't clone types that are copy (clippy::clone_on_copy)
This commit is contained in:
parent
c5d654d513
commit
048dad8c2e
12 changed files with 18 additions and 28 deletions
|
@ -102,7 +102,7 @@ fn extract_positioned_link_from_comment(
|
|||
None => comment_range.end(),
|
||||
}
|
||||
})?;
|
||||
Some((def_link.to_string(), ns.clone()))
|
||||
Some((def_link.to_string(), *ns))
|
||||
}
|
||||
|
||||
fn pick_best(tokens: TokenAtOffset<SyntaxToken>) -> Option<SyntaxToken> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue