mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-18 00:00:09 +02:00
sync: remove unused lifetime on SemaphorePermit impl (#4896)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user