Skip to content

Commit bbc3270

Browse files
committed
fix
1 parent 3ee91a3 commit bbc3270

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
4343
#![forbid(unsafe_code)]
4444
#![deny(missing_debug_implementations, nonstandard_style)]
45-
#![warn(missing_docs, missing_doc_code_examples)]
45+
#![warn(missing_docs)]
4646

4747
mod from_parallel_stream;
4848
mod from_stream;

src/par_stream/for_each.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl ForEach {
5757
// Wake up the receiver if we know we're done.
5858
ref_count.fetch_sub(1, Ordering::SeqCst);
5959
if exhausted.load(Ordering::SeqCst) && ref_count.load(Ordering::SeqCst) == 0 {
60-
sender.send(()).await;
60+
sender.send(()).await.expect("message failed to send");
6161
}
6262
});
6363
}

src/par_stream/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl<T: Send + 'static> Map<T> {
3333
let sender = sender.clone();
3434
task::spawn(async move {
3535
let res = f(item).await;
36-
sender.send(res).await;
36+
sender.send(res).await.expect("message failed to send");
3737
});
3838
}
3939
});

0 commit comments

Comments
 (0)