Skip to content

Commit 2932d17

Browse files
Fix clippy warning
1 parent 16f521b commit 2932d17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use crate::parse::Input;
4545
#[derive(Clone, Copy)]
4646
struct CopyWrapper<'a, T>(&'a T);
4747

48-
impl<'a, T: ToTokens> ToTokens for CopyWrapper<'a, T> {
48+
impl<T: ToTokens> ToTokens for CopyWrapper<'_, T> {
4949
fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) {
5050
self.0.to_tokens(tokens)
5151
}

tests/basics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ mod generics {
405405
option: Option<u8>,
406406
}
407407

408-
fn const_generics_example<'a>() -> WithConstGeneric<3> {
408+
fn const_generics_example() -> WithConstGeneric<3> {
409409
WithConstGeneric {
410410
data: ByteArray::new([1, 2, 3]),
411411
option: None,

0 commit comments

Comments
 (0)