diff options
author | Alice Ryhl <alice@ryhl.io> | 2020-10-01 23:59:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 00:59:48 +0300 |
commit | 496e8899172a39eb8b2cff0f2462141ddc6b575d (patch) | |
tree | 39e8048943abd48b6aa04b79e804c0d1c5133269 /tokio/src/sync/oneshot.rs | |
parent | 53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5 (diff) |
Fix new clippy warning (#2899)
Diffstat (limited to 'tokio/src/sync/oneshot.rs')
-rw-r--r-- | tokio/src/sync/oneshot.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tokio/src/sync/oneshot.rs b/tokio/src/sync/oneshot.rs index 17767e7f..32506bc3 100644 --- a/tokio/src/sync/oneshot.rs +++ b/tokio/src/sync/oneshot.rs @@ -124,7 +124,6 @@ struct State(usize); /// } /// ``` pub fn channel<T>() -> (Sender<T>, Receiver<T>) { - #[allow(deprecated)] let inner = Arc::new(Inner { state: AtomicUsize::new(State::new().as_usize()), value: UnsafeCell::new(None), |