mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
fix clippy::single_char_pattern
This commit is contained in:
parent
7912e33ed6
commit
1f70886b15
10 changed files with 22 additions and 22 deletions
|
@ -178,7 +178,7 @@ pub fn identity_when_valid(_attr: TokenStream, item: TokenStream) -> TokenStream
|
|||
|
||||
if tree {
|
||||
let tree = format!("{:#?}", parse.syntax_node())
|
||||
.split_inclusive("\n")
|
||||
.split_inclusive('\n')
|
||||
.map(|line| format!("// {}", line))
|
||||
.collect::<String>();
|
||||
format_to!(expn_text, "\n{}", tree)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue