Add must_use annotations to Result::is_ok and is_err
This commit is contained in:
parent
3750348daf
commit
ce5d69480a
5 changed files with 12 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue