mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
remove redundant clone()s
This commit is contained in:
parent
5ecace48f6
commit
2a8edaa14d
8 changed files with 17 additions and 17 deletions
|
@ -312,7 +312,7 @@ pub(crate) fn render_expr(
|
|||
None => ctx.source_range(),
|
||||
};
|
||||
|
||||
let mut item = CompletionItem::new(CompletionItemKind::Expression, source_range, label.clone());
|
||||
let mut item = CompletionItem::new(CompletionItemKind::Expression, source_range, label);
|
||||
|
||||
let snippet = format!(
|
||||
"{}$0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue