mirror of https://github.com/rust-lang/reference
Merge pull request #1488 from yotamofek/patch-1
Fix clippy warning in procedural macro example
This commit is contained in:
commit
1e1fec30f1
|
@ -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
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue