Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/handlers/remove_dbg.rs')
| -rw-r--r-- | crates/ide_assists/src/handlers/remove_dbg.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/handlers/remove_dbg.rs b/crates/ide_assists/src/handlers/remove_dbg.rs index e6aab9e848..b860a3b6da 100644 --- a/crates/ide_assists/src/handlers/remove_dbg.rs +++ b/crates/ide_assists/src/handlers/remove_dbg.rs @@ -46,7 +46,7 @@ pub(crate) fn remove_dbg(acc: &mut Assists, ctx: &AssistContext) -> Option<()> { [] => { match_ast! { match parent { - ast::BlockExpr(__) => { + ast::StmtList(__) => { let range = macro_call.syntax().text_range(); let range = match whitespace_start(macro_call.syntax().prev_sibling_or_token()) { Some(start) => range.cover_offset(start), |