mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
fix clippy::redundant_clone
This commit is contained in:
parent
d64d711db2
commit
21ffc5350d
5 changed files with 6 additions and 10 deletions
|
@ -306,7 +306,7 @@ impl NameClass {
|
|||
|
||||
if let Some(it) = ast::LifetimeParam::cast(parent.clone()) {
|
||||
sema.to_def(&it).map(Into::into).map(Definition::GenericParam)
|
||||
} else if let Some(it) = ast::Label::cast(parent.clone()) {
|
||||
} else if let Some(it) = ast::Label::cast(parent) {
|
||||
sema.to_def(&it).map(Definition::Label)
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue