mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +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) {
|
fn drop(&mut self) {
|
||||||
self.sem.add_permits(self.permits as usize);
|
self.sem.add_permits(self.permits as usize);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user