sync: remove unused lifetime on SemaphorePermit impl (#4896)

This commit is contained in:
Sebastian Pütz
2022-08-11 12:12:36 +02:00
committed by GitHub
parent cd0ff7fbfe
commit 53e127205b
+1 -1
View File
@@ -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);
}