diff options
author | Yoshua Wuyts <[email protected]> | 2021-02-05 15:57:26 +0000 |
---|---|---|
committer | Yoshua Wuyts <[email protected]> | 2021-02-05 15:57:26 +0000 |
commit | 79d103d5b42c5b207c28b6eb8a6ab42f0c685ec5 (patch) | |
tree | e996c0d19a90a51704d201e935f519b22644256e /crates/assists/src | |
parent | ae7bee70a10d01f0fdebfc12c70aca4f765826b3 (diff) |
Remove redundant clones
Diffstat (limited to 'crates/assists/src')
-rw-r--r-- | crates/assists/src/assist_context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
162 | } else { | 162 | } else { |
163 | None | 163 | None |
164 | }; | 164 | }; |
165 | assist.source_change = source_change.clone(); | 165 | assist.source_change = source_change; |
166 | 166 | ||
167 | self.buf.push(assist); | 167 | self.buf.push(assist); |
168 | Some(()) | 168 | Some(()) |
@@ -242,7 +242,7 @@ impl AssistBuilder { | |||
242 | } | 242 | } |
243 | pub(crate) fn create_file(&mut self, dst: AnchoredPathBuf, content: impl Into<String>) { | 243 | pub(crate) fn create_file(&mut self, dst: AnchoredPathBuf, content: impl Into<String>) { |
244 | let file_system_edit = | 244 | let file_system_edit = |
245 | FileSystemEdit::CreateFile { dst: dst.clone(), initial_contents: content.into() }; | 245 | FileSystemEdit::CreateFile { dst: dst, initial_contents: content.into() }; |
246 | self.source_change.push_file_system_edit(file_system_edit); | 246 | self.source_change.push_file_system_edit(file_system_edit); |
247 | } | 247 | } |
248 | 248 | ||