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 /cli/ops | |
parent | 59cb3c14c729cafa81022b4374de58d006bfe677 (diff) |
fix some unwrap() in Rust (#5485)
Diffstat (limited to 'cli/ops')
-rw-r--r-- | cli/ops/tls.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/ops/tls.rs b/cli/ops/tls.rs index 48c89be81..5cbdff300 100644 --- a/cli/ops/tls.rs +++ b/cli/ops/tls.rs @@ -291,9 +291,7 @@ impl TlsListenerResource { /// Stop tracking a task. /// Happens when the task is done and thus no further tracking is needed. pub fn untrack_task(&mut self) { - if self.waker.is_some() { - self.waker.take(); - } + self.waker.take(); } } |