fix clippy::single_char_pattern

This commit is contained in:
Matthias Krüger 2022-03-12 13:22:12 +01:00
parent 7912e33ed6
commit 1f70886b15
10 changed files with 22 additions and 22 deletions

View file

@ -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)