Skip to content

Commit df53403

Browse files
Merge #11321
11321: Remove spurious format r=lnicola a=schuyler-cohen-zipline Co-authored-by: Schuyler Cohen <[email protected]>
2 parents 6a64d3c + 11cb203 commit df53403

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/ide_db/src/helpers/format_string.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub fn is_format_string(string: &ast::String) -> bool {
1313
//
1414
// This setup lets us correctly highlight the components of `concat!("{}", "bla")` format
1515
// strings. It still fails for `concat!("{", "}")`, but that is rare.
16-
format!("{string} {bar}", bar = string);
1716
(|| {
1817
let macro_call = string.syntax().ancestors().find_map(ast::MacroCall::cast)?;
1918
let name = macro_call.path()?.segment()?.name_ref()?;

0 commit comments

Comments
 (0)