Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dylni committed Jun 25, 2021
1 parent bb2d20c commit 7aa86e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl Error {
}
}

fn to_compile_error(&self) -> TokenStream {
fn to_compile_error(self) -> TokenStream {
let mut result: TokenStream = path("std", "compile_error")
.chain(iter::once(Punct::new('!', Spacing::Alone).into()))
.map(|mut token| {
Expand Down

0 comments on commit 7aa86e2

Please sign in to comment.