Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
survived committed May 17, 2024
1 parent c393310 commit b122931
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions round-based/src/rounds_router/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ where
}
}

#[allow(clippy::type_complexity)]
fn retrieve_round_output_if_its_completed<R>(
&mut self,
) -> Option<Result<R::Output, CompleteRoundError<R::Error, E>>>
Expand Down Expand Up @@ -321,6 +322,7 @@ trait ProcessRoundMessage {
/// * `Ok(Ok(any))` — round is successfully completed, `any` needs to be downcasted to `MessageStore::Output`
/// * `Ok(Err(any))` — round has terminated with an error, `any` needs to be downcasted to `CompleteRoundError<MessageStore::Error>`
/// * `Err(err)` — couldn't retrieve the output, see [`TakeOutputError`]
#[allow(clippy::type_complexity)]
fn take_output(&mut self) -> Result<Result<Box<dyn Any>, Box<dyn Any>>, TakeOutputError>;
}

Expand Down
2 changes: 1 addition & 1 deletion round-based/src/state_machine/delivery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl<M> Outgoings<M> {
}
}

impl<'a, M> crate::Sink<crate::Outgoing<M>> for Outgoings<M> {
impl<M> crate::Sink<crate::Outgoing<M>> for Outgoings<M> {
type Error = SendErr;

fn poll_ready(
Expand Down
4 changes: 2 additions & 2 deletions round-based/src/state_machine/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl<M> Runtime<M> {
}
}

impl<'a, M> crate::runtime::AsyncRuntime for Runtime<M> {
impl<M> crate::runtime::AsyncRuntime for Runtime<M> {
type YieldNowFuture = YieldNow<M>;

fn yield_now(&self) -> Self::YieldNowFuture {
Expand All @@ -28,7 +28,7 @@ pub struct YieldNow<M> {
yielded: bool,
}

impl<'a, M> core::future::Future for YieldNow<M> {
impl<M> core::future::Future for YieldNow<M> {
type Output = ();

fn poll(
Expand Down

0 comments on commit b122931

Please sign in to comment.