summaryrefslogtreecommitdiffstats
path: root/tokio/src/runtime/park.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/runtime/park.rs')
-rw-r--r--tokio/src/runtime/park.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/runtime/park.rs b/tokio/src/runtime/park.rs
index c994c935..033b9f20 100644
--- a/tokio/src/runtime/park.rs
+++ b/tokio/src/runtime/park.rs
@@ -142,7 +142,7 @@ impl Inner {
fn park_condvar(&self) {
// Otherwise we need to coordinate going to sleep
- let mut m = self.mutex.lock().unwrap();
+ let mut m = self.mutex.lock();
match self
.state
@@ -238,7 +238,7 @@ impl Inner {
// Releasing `lock` before the call to `notify_one` means that when the
// parked thread wakes it doesn't get woken only to have to wait for us
// to release `lock`.
- drop(self.mutex.lock().unwrap());
+ drop(self.mutex.lock());
self.condvar.notify_one()
}