about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-01-19 20:01:41 +0000
committerGitHub <noreply@github.com>2022-01-19 20:01:41 +0000
commitdf5340386365b2b16c4e9bbae546504b97564c41 (patch)
tree61c42a3e6dabcba461d54913cd78e59da8a6e030
parent6a64d3c4df53ceac10c270de43738d8e547dfd2a (diff)
parent11cb203daf8d5ad8036f7c1671a6676b8e485776 (diff)
downloadrust-df5340386365b2b16c4e9bbae546504b97564c41.tar.gz
rust-df5340386365b2b16c4e9bbae546504b97564c41.zip
Merge #11321
11321: Remove spurious format r=lnicola a=schuyler-cohen-zipline



Co-authored-by: Schuyler Cohen <schuyler.cohen@flyzipline.com>
-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 29f61a95e74..3c584a6cbc9 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()?;