Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Oct 15, 2021
1 parent 3ee91a3 commit bbc3270
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#![forbid(unsafe_code)]
#![deny(missing_debug_implementations, nonstandard_style)]
#![warn(missing_docs, missing_doc_code_examples)]
#![warn(missing_docs)]

mod from_parallel_stream;
mod from_stream;
Expand Down
2 changes: 1 addition & 1 deletion src/par_stream/for_each.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl ForEach {
// Wake up the receiver if we know we're done.
ref_count.fetch_sub(1, Ordering::SeqCst);
if exhausted.load(Ordering::SeqCst) && ref_count.load(Ordering::SeqCst) == 0 {
sender.send(()).await;
sender.send(()).await.expect("message failed to send");
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/par_stream/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<T: Send + 'static> Map<T> {
let sender = sender.clone();
task::spawn(async move {
let res = f(item).await;
sender.send(res).await;
sender.send(res).await.expect("message failed to send");
});
}
});
Expand Down

0 comments on commit bbc3270

Please sign in to comment.