File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 42
42
43
43
#![ forbid( unsafe_code) ]
44
44
#![ deny( missing_debug_implementations, nonstandard_style) ]
45
- #![ warn( missing_docs, missing_doc_code_examples ) ]
45
+ #![ warn( missing_docs) ]
46
46
47
47
mod from_parallel_stream;
48
48
mod from_stream;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ impl ForEach {
57
57
// Wake up the receiver if we know we're done.
58
58
ref_count. fetch_sub ( 1 , Ordering :: SeqCst ) ;
59
59
if exhausted. load ( Ordering :: SeqCst ) && ref_count. load ( Ordering :: SeqCst ) == 0 {
60
- sender. send ( ( ) ) . await ;
60
+ sender. send ( ( ) ) . await . expect ( "message failed to send" ) ;
61
61
}
62
62
} ) ;
63
63
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ impl<T: Send + 'static> Map<T> {
33
33
let sender = sender. clone ( ) ;
34
34
task:: spawn ( async move {
35
35
let res = f ( item) . await ;
36
- sender. send ( res) . await ;
36
+ sender. send ( res) . await . expect ( "message failed to send" ) ;
37
37
} ) ;
38
38
}
39
39
} ) ;
You can’t perform that action at this time.
0 commit comments