remove false positive

This commit is contained in:
Kartavya Vashishtha 2022-09-10 21:04:25 +05:30
parent cc7200891b
commit a5cbee4d11
No known key found for this signature in database
GPG key ID: A50012C2324E5DF0

View file

@ -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()?;
if extracted_args.is_empty() {
return None;
}
acc.add(
AssistId("move_format_string_arg", AssistKind::QuickFix),