diff --git a/crates/ide_db/src/helpers/format_string.rs b/crates/ide_db/src/helpers/format_string.rs index 29f61a95e7..3c584a6cbc 100644 --- a/crates/ide_db/src/helpers/format_string.rs +++ b/crates/ide_db/src/helpers/format_string.rs @@ -13,7 +13,6 @@ pub fn is_format_string(string: &ast::String) -> bool { // // This setup lets us correctly highlight the components of `concat!("{}", "bla")` format // strings. It still fails for `concat!("{", "}")`, but that is rare. - format!("{string} {bar}", bar = string); (|| { let macro_call = string.syntax().ancestors().find_map(ast::MacroCall::cast)?; let name = macro_call.path()?.segment()?.name_ref()?;