mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 08:57:34 +00:00
Remove spurious format
This commit is contained in:
parent
6a64d3c4df
commit
11cb203daf
1 changed files with 0 additions and 1 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Reference in a new issue