Skip to content

Commit 7c16331

Browse files
committed
Fix broken things
Signed-off-by: Denis Varlakov <denis@dfns.co>
1 parent 0cb79cf commit 7c16331

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

round-based/src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@
5050
#![forbid(unused_crate_dependencies, missing_docs)]
5151
#![no_std]
5252

53-
#[cfg(feature = "std")]
54-
extern crate std;
55-
5653
extern crate alloc;
5754

5855
#[doc(no_inline)]

round-based/src/rounds_router/mod.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ pub mod errors {
551551
#[error("mismatched error type")]
552552
MismatchedErrorType,
553553
#[error("take round result")]
554-
TakeRoundResult(#[cfg_attr(feature = "std", source)] TakeOutputError),
554+
TakeRoundResult(#[source] TakeOutputError),
555555
}
556556

557557
impl<ProcessErr, IoErr> CompleteRoundError<ProcessErr, IoErr> {
@@ -625,8 +625,9 @@ mod tests {
625625

626626
#[tokio::test]
627627
async fn complete_round_that_expects_no_messages() {
628-
let incomings =
629-
futures::stream::pending::<Result<crate::Incoming<FakeProtocolMsg>, std::io::Error>>();
628+
let incomings = futures::stream::pending::<
629+
Result<crate::Incoming<FakeProtocolMsg>, core::convert::Infallible>,
630+
>();
630631

631632
let mut rounds = super::RoundsRouter::builder();
632633
let round1 = rounds.add_round(Store);

0 commit comments

Comments
 (0)