summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/watch.rs
diff options
context:
space:
mode:
authornicolaiunrein <n.unrein@gmail.com>2020-07-20 23:30:28 +0200
committerGitHub <noreply@github.com>2020-07-20 14:30:28 -0700
commit6dcce1901a53f099bf10f242943b44010f264171 (patch)
tree63feed1dc043f38d7af536dae848d56f3b6798f5 /tokio/src/sync/watch.rs
parent32f46d7b883e1447833630464f168bb160fb51c9 (diff)
sync: remove misleading comment (#2666)
We are not returning the old value. I suppose this was once indented and this is a leftover.
Diffstat (limited to 'tokio/src/sync/watch.rs')
-rw-r--r--tokio/src/sync/watch.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tokio/src/sync/watch.rs b/tokio/src/sync/watch.rs
index ba609a8c..13033d9e 100644
--- a/tokio/src/sync/watch.rs
+++ b/tokio/src/sync/watch.rs
@@ -338,7 +338,6 @@ impl<T> Sender<T> {
// Notify all watchers
notify_all(&*shared);
- // Return the old value
Ok(())
}