Skip to content

Commit

Permalink
Fix broken things
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Varlakov <[email protected]>
  • Loading branch information
survived committed Dec 3, 2024
1 parent 0cb79cf commit 7c16331
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions round-based/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@
#![forbid(unused_crate_dependencies, missing_docs)]
#![no_std]

#[cfg(feature = "std")]
extern crate std;

extern crate alloc;

#[doc(no_inline)]
Expand Down
7 changes: 4 additions & 3 deletions round-based/src/rounds_router/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ pub mod errors {
#[error("mismatched error type")]
MismatchedErrorType,
#[error("take round result")]
TakeRoundResult(#[cfg_attr(feature = "std", source)] TakeOutputError),
TakeRoundResult(#[source] TakeOutputError),
}

impl<ProcessErr, IoErr> CompleteRoundError<ProcessErr, IoErr> {
Expand Down Expand Up @@ -625,8 +625,9 @@ mod tests {

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

let mut rounds = super::RoundsRouter::builder();
let round1 = rounds.add_round(Store);
Expand Down

0 comments on commit 7c16331

Please sign in to comment.