diff options
author | Yiyu Lin <linyiyu1992@gmail.com> | 2020-05-16 21:41:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 09:41:32 -0400 |
commit | 0b9942da84bb9bfc9fc1eaf4170ad71864b7c179 (patch) | |
tree | 050a3760d4d0c4c9b3cd276a40808bbbe520f000 /core/isolate.rs | |
parent | 59cb3c14c729cafa81022b4374de58d006bfe677 (diff) |
fix some unwrap() in Rust (#5485)
Diffstat (limited to 'core/isolate.rs')
-rw-r--r-- | core/isolate.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/isolate.rs b/core/isolate.rs index e9ff9474c..d017687c6 100644 --- a/core/isolate.rs +++ b/core/isolate.rs @@ -529,8 +529,7 @@ impl Future for CoreIsolate { assert_eq!(inner.shared.size(), 0); } - if overflow_response.is_some() { - let (op_id, buf) = overflow_response.take().unwrap(); + if let Some((op_id, buf)) = overflow_response.take() { async_op_response( scope, Some((op_id, buf)), |