diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2019-04-02 22:09:56 +0000 |
|---|---|---|
| committer | Alex Gaynor <agaynor@mozilla.com> | 2019-04-08 12:58:09 -0400 |
| commit | ce5d69480a644011acedd3072eaef61cd72e5850 (patch) | |
| tree | b110096293347cc6386b1e40e902095cbe55e612 /src/libstd | |
| parent | 3750348daff89741e3153e0e120aa70a45ff5b68 (diff) | |
| download | rust-ce5d69480a644011acedd3072eaef61cd72e5850.tar.gz rust-ce5d69480a644011acedd3072eaef61cd72e5850.zip | |
Add must_use annotations to Result::is_ok and is_err
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sync/mpsc/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index bc32b8e47b3..685c7909ff2 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -1005,7 +1005,7 @@ impl<T> SyncSender<T> { /// thread::spawn(move || { /// // This will return an error and send /// // no message if the buffer is full - /// sync_sender2.try_send(3).is_err(); + /// let _ = sync_sender2.try_send(3); /// }); /// /// let mut msg; |
