Unnamed repository; edit this file 'description' to name the repository.
Merge #11321
11321: Remove spurious format r=lnicola a=schuyler-cohen-zipline Co-authored-by: Schuyler Cohen <[email protected]>
bors[bot] 2022-01-20
parent 6a64d3c · parent 11cb203 · commit df53403
-rw-r--r--crates/ide_db/src/helpers/format_string.rs1
1 files changed, 0 insertions, 1 deletions
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()?;