From 79d103d5b42c5b207c28b6eb8a6ab42f0c685ec5 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Fri, 5 Feb 2021 16:57:26 +0100 Subject: Remove redundant clones --- crates/assists/src/assist_context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/assists/src/assist_context.rs') diff --git a/crates/assists/src/assist_context.rs b/crates/assists/src/assist_context.rs index 8d93edba2..bba6c08e0 100644 --- a/crates/assists/src/assist_context.rs +++ b/crates/assists/src/assist_context.rs @@ -162,7 +162,7 @@ impl Assists { } else { None }; - assist.source_change = source_change.clone(); + assist.source_change = source_change; self.buf.push(assist); Some(()) @@ -242,7 +242,7 @@ impl AssistBuilder { } pub(crate) fn create_file(&mut self, dst: AnchoredPathBuf, content: impl Into) { let file_system_edit = - FileSystemEdit::CreateFile { dst: dst.clone(), initial_contents: content.into() }; + FileSystemEdit::CreateFile { dst: dst, initial_contents: content.into() }; self.source_change.push_file_system_edit(file_system_edit); } -- cgit v1.2.3