Skip to content

Commit

Permalink
Remove unnecessary explicit lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Jan 14, 2025
1 parent b80645c commit 63e9cd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ pub struct Requester<'i, Rq, Rp> {
channel: &'i Channel<Rq, Rp>,
}

impl<'i, Rq, Rp> Drop for Requester<'i, Rq, Rp> {
impl<Rq, Rp> Drop for Requester<'_, Rq, Rp> {
fn drop(&mut self) {
self.channel
.requester_claimed
Expand Down Expand Up @@ -551,7 +551,7 @@ impl<'i, Rq, Rp> Requester<'i, Rq, Rp> {
}
}

impl<'i, Rq, Rp> Requester<'i, Rq, Rp>
impl<Rq, Rp> Requester<'_, Rq, Rp>
where
Rq: Default,
{
Expand Down Expand Up @@ -627,7 +627,7 @@ pub struct Responder<'i, Rq, Rp> {
channel: &'i Channel<Rq, Rp>,
}

impl<'i, Rq, Rp> Drop for Responder<'i, Rq, Rp> {
impl<Rq, Rp> Drop for Responder<'_, Rq, Rp> {
fn drop(&mut self) {
self.channel
.responder_claimed
Expand Down Expand Up @@ -768,7 +768,7 @@ impl<'i, Rq, Rp> Responder<'i, Rq, Rp> {
}
}

impl<'i, Rq, Rp> Responder<'i, Rq, Rp>
impl<Rq, Rp> Responder<'_, Rq, Rp>
where
Rp: Default,
{
Expand Down

0 comments on commit 63e9cd3

Please sign in to comment.