We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5246b61 commit 68e195cCopy full SHA for 68e195c
crates/syntax/src/syntax_editor/edits.rs
@@ -167,21 +167,6 @@ impl Removable for ast::Use {
167
}
168
169
170
- let prev_ws = self
171
- .syntax()
172
- .prev_sibling_or_token()
173
- .and_then(|it| it.into_token())
174
- .and_then(ast::Whitespace::cast);
175
- if let Some(prev_ws) = prev_ws {
176
- let ws_text = prev_ws.syntax().text();
177
- let prev_newline = ws_text.rfind('\n').map(|x| x + 1).unwrap_or(0);
178
- let rest = &ws_text[0..prev_newline];
179
- if rest.is_empty() {
180
- editor.delete(prev_ws.syntax());
181
- } else {
182
- editor.replace(prev_ws.syntax(), make.whitespace(rest));
183
- }
184
185
186
editor.delete(self.syntax());
187
0 commit comments