diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-09 11:40:08 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-09 11:40:08 +0000 |
commit | 2f247140817c9cbd9009085c9f9ccedb4f6a718f (patch) | |
tree | 9866d241ed3345fd89ac511eba4bd3d85bd41171 /crates/assists/src/assist_context.rs | |
parent | a12088456072459c7df2d9d8f077a69ab518710a (diff) | |
parent | 4c03d98db4638729e8b47449ba76bf51e33cd444 (diff) |
Merge #6501
6501: Remove text_edit_builder api from AssistBuilder r=matklad a=Veykril
Also fixes a small bug in `expand_glob_import` in regards to the very nice looking `something::{*}` import when only one item was used. Before it would duplicate the path and just append it, causing the following wrong import `something::something::UsedItem`.
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/assists/src/assist_context.rs')
-rw-r--r-- | crates/assists/src/assist_context.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/assists/src/assist_context.rs b/crates/assists/src/assist_context.rs index fcfe2d6ee..51a160f40 100644 --- a/crates/assists/src/assist_context.rs +++ b/crates/assists/src/assist_context.rs | |||
@@ -275,12 +275,6 @@ impl AssistBuilder { | |||
275 | algo::diff(&node, &new).into_text_edit(&mut self.edit); | 275 | algo::diff(&node, &new).into_text_edit(&mut self.edit); |
276 | } | 276 | } |
277 | 277 | ||
278 | // FIXME: kill this API | ||
279 | /// Get access to the raw `TextEditBuilder`. | ||
280 | pub(crate) fn text_edit_builder(&mut self) -> &mut TextEditBuilder { | ||
281 | &mut self.edit | ||
282 | } | ||
283 | |||
284 | fn finish(mut self) -> SourceChange { | 278 | fn finish(mut self) -> SourceChange { |
285 | self.commit(); | 279 | self.commit(); |
286 | let mut change = mem::take(&mut self.change); | 280 | let mut change = mem::take(&mut self.change); |