Skip to content

Commit 6c8041c

Browse files
committed
derive: Remove explicit outlive bounds
1 parent dfe6b9d commit 6c8041c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth1-request-derive/src/method_body.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ impl<'a> ToTokens for MethodBody<'a> {
6060

6161
// We can't just use `f.ty` instead of `T` because doing so would lead
6262
// to E0412/E0261 if `f.ty` contains lifetime/type parameters.
63-
struct Adapter<'a, T: 'a + ?Sized, F>(&'a T, F);
64-
impl<'a, T: 'a + ?Sized, F> Display for Adapter<'a, T, F>
63+
struct Adapter<'a, T: ?Sized, F>(&'a T, F);
64+
impl<'a, T: ?Sized, F> Display for Adapter<'a, T, F>
6565
where
6666
F: Fn(&T, &mut Formatter<'_>) -> Result,
6767
{

0 commit comments

Comments
 (0)