diff options
author | Carl Lerche <me@carllerche.com> | 2019-11-05 23:38:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-05 23:38:52 -0800 |
commit | 0da23aad772afb22db8edf73ac0f034c5ada3bde (patch) | |
tree | acebe4125a39a5ee81815b19587ffad400559bb8 /tokio/src/sync/watch.rs | |
parent | d5c1119c881c9a8b511aa9000fd26b9bda014256 (diff) |
fix clippy (#1737)
Diffstat (limited to 'tokio/src/sync/watch.rs')
-rw-r--r-- | tokio/src/sync/watch.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tokio/src/sync/watch.rs b/tokio/src/sync/watch.rs index 30f1603f..928c2c46 100644 --- a/tokio/src/sync/watch.rs +++ b/tokio/src/sync/watch.rs @@ -298,7 +298,6 @@ impl<T: Clone> Receiver<T> { impl<T: Clone> futures_core::Stream for Receiver<T> { type Item = T; - #[allow(clippy::map_clone)] // false positive: https://github.com/rust-lang/rust-clippy/issues/3274 fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<T>> { use std::future::Future; @@ -306,7 +305,7 @@ impl<T: Clone> futures_core::Stream for Receiver<T> { pin_mut!(fut); let item = ready!(fut.poll(cx)); - Ready(item.map(|v_ref| v_ref.clone())) + Ready(item.map(|v_ref| v_ref)) } } |