remove false positive
This commit is contained in:
parent
cc7200891b
commit
a5cbee4d11
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ pub(crate) fn move_format_string_arg(acc: &mut Assists, ctx: &AssistContext<'_>)
|
||||||
}
|
}
|
||||||
|
|
||||||
let (new_fmt, extracted_args) = parse_format_exprs(fmt_string.text()).ok()?;
|
let (new_fmt, extracted_args) = parse_format_exprs(fmt_string.text()).ok()?;
|
||||||
|
if extracted_args.is_empty() {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
|
||||||
acc.add(
|
acc.add(
|
||||||
AssistId("move_format_string_arg", AssistKind::QuickFix),
|
AssistId("move_format_string_arg", AssistKind::QuickFix),
|
||||||
|
|
Loading…
Add table
Reference in a new issue