diff options
| author | Schuyler Cohen <schuyler.cohen@flyzipline.com> | 2022-01-19 13:37:25 -0600 |
|---|---|---|
| committer | Schuyler Cohen <schuyler.cohen@flyzipline.com> | 2022-01-19 13:37:25 -0600 |
| commit | 11cb203daf8d5ad8036f7c1671a6676b8e485776 (patch) | |
| tree | 61c42a3e6dabcba461d54913cd78e59da8a6e030 | |
| parent | 6a64d3c4df53ceac10c270de43738d8e547dfd2a (diff) | |
| download | rust-11cb203daf8d5ad8036f7c1671a6676b8e485776.tar.gz rust-11cb203daf8d5ad8036f7c1671a6676b8e485776.zip | |
Remove spurious format
| -rw-r--r-- | crates/ide_db/src/helpers/format_string.rs | 1 |
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()?; |
