From 11cb203daf8d5ad8036f7c1671a6676b8e485776 Mon Sep 17 00:00:00 2001 From: Schuyler Cohen Date: Wed, 19 Jan 2022 13:37:25 -0600 Subject: [PATCH] Remove spurious format --- crates/ide_db/src/helpers/format_string.rs | 1 - 1 file changed, 1 deletion(-) 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()?;