mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
NFC: remove redundant clones (clippy::perf)
This commit is contained in:
parent
23b48d377d
commit
9452dfaac7
5 changed files with 5 additions and 5 deletions
|
@ -567,7 +567,7 @@ impl<'a> CompletionContext<'a> {
|
|||
None => return,
|
||||
};
|
||||
|
||||
if let Some(segment) = ast::PathSegment::cast(parent.clone()) {
|
||||
if let Some(segment) = ast::PathSegment::cast(parent) {
|
||||
let path = segment.parent_path();
|
||||
self.is_call = path
|
||||
.syntax()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue