We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a64d3c + 11cb203 commit df53403Copy full SHA for df53403
crates/ide_db/src/helpers/format_string.rs
@@ -13,7 +13,6 @@ pub fn is_format_string(string: &ast::String) -> bool {
13
//
14
// This setup lets us correctly highlight the components of `concat!("{}", "bla")` format
15
// strings. It still fails for `concat!("{", "}")`, but that is rare.
16
- format!("{string} {bar}", bar = string);
17
(|| {
18
let macro_call = string.syntax().ancestors().find_map(ast::MacroCall::cast)?;
19
let name = macro_call.path()?.segment()?.name_ref()?;
0 commit comments