Skip to content

Commit

Permalink
sync: remove unused lifetime on SemaphorePermit impl (#4896)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebpuetz authored Aug 11, 2022
1 parent cd0ff7f commit 53e1272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/sync/semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ impl OwnedSemaphorePermit {
}
}

impl<'a> Drop for SemaphorePermit<'_> {
impl Drop for SemaphorePermit<'_> {
fn drop(&mut self) {
self.sem.add_permits(self.permits as usize);
}
Expand Down

0 comments on commit 53e1272

Please sign in to comment.