NFC: remove redundant clones (clippy::perf)

This commit is contained in:
Matthias Krüger 2021-06-03 15:32:46 +02:00
parent 23b48d377d
commit 9452dfaac7
5 changed files with 5 additions and 5 deletions

View file

@ -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()