Merge pull request #1488 from yotamofek/patch-1

Fix clippy warning in procedural macro example
This commit is contained in:
Eric Huss 2024-04-01 19:56:13 +00:00 committed by GitHub
commit 1e1fec30f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -234,8 +234,8 @@ shown in the comments after the function prefixed with "out:".
#[proc_macro_attribute]
pub fn show_streams(attr: TokenStream, item: TokenStream) -> TokenStream {
println!("attr: \"{}\"", attr.to_string());
println!("item: \"{}\"", item.to_string());
println!("attr: \"{attr}\"");
println!("item: \"{item}\"");
item
}
```