Skip to content

Commit a5cbee4

Browse files
committed
remove false positive
1 parent cc72008 commit a5cbee4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ide-assists/src/handlers/move_format_string_arg.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ pub(crate) fn move_format_string_arg(acc: &mut Assists, ctx: &AssistContext<'_>)
5151
}
5252

5353
let (new_fmt, extracted_args) = parse_format_exprs(fmt_string.text()).ok()?;
54+
if extracted_args.is_empty() {
55+
return None;
56+
}
5457

5558
acc.add(
5659
AssistId("move_format_string_arg", AssistKind::QuickFix),

0 commit comments

Comments
 (0)