Add must_use annotations to Result::is_ok and is_err

This commit is contained in:
Alex Gaynor 2019-04-02 22:09:56 +00:00 committed by Alex Gaynor
parent 3750348daf
commit ce5d69480a
5 changed files with 12 additions and 8 deletions

View file

@ -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;