File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub(crate) fn remove_dbg(ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> {
28
28
. checked_sub ( macro_range. start ( ) )
29
29
. unwrap_or_else ( || TextUnit :: from ( 0 ) ) ;
30
30
31
- let dbg_size = dbg ! ( TextUnit :: of_str( "dbg!(" ) ) ;
31
+ let dbg_size = TextUnit :: of_str ( "dbg!(" ) ;
32
32
33
33
if offset_start > dbg_size {
34
34
file_range. start ( ) - dbg_size
@@ -39,8 +39,7 @@ pub(crate) fn remove_dbg(ctx: AssistCtx<impl HirDatabase>) -> Option<Assist> {
39
39
40
40
let macro_content = {
41
41
let macro_args = macro_call. token_tree ( ) ?. syntax ( ) ;
42
- let _ = dbg ! ( macro_args. text( ) ) ;
43
- let range = dbg ! ( macro_args. range( ) ) ;
42
+ let range = macro_args. range ( ) ;
44
43
let start = range. start ( ) + TextUnit :: of_char ( '(' ) ;
45
44
let end = range. end ( ) - TextUnit :: of_char ( ')' ) ;
46
45
You can’t perform that action at this time.
0 commit comments