Fix clippy warning in procedural macro example

I copy+pasted this example into my code and the `clippy::to_string_in_format_args` lint fired.
This commit is contained in:
Yotam Ofek 2024-03-30 23:14:03 +03:00 committed by GitHub
parent 984b36eca4
commit a7a86824fa
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
}
```