Skip to content

Commit b122931

Browse files
committed
clippy fix
1 parent c393310 commit b122931

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

round-based/src/rounds_router/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ where
169169
}
170170
}
171171

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

round-based/src/state_machine/delivery.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl<M> Outgoings<M> {
3737
}
3838
}
3939

40-
impl<'a, M> crate::Sink<crate::Outgoing<M>> for Outgoings<M> {
40+
impl<M> crate::Sink<crate::Outgoing<M>> for Outgoings<M> {
4141
type Error = SendErr;
4242

4343
fn poll_ready(

round-based/src/state_machine/runtime.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ impl<M> Runtime<M> {
1111
}
1212
}
1313

14-
impl<'a, M> crate::runtime::AsyncRuntime for Runtime<M> {
14+
impl<M> crate::runtime::AsyncRuntime for Runtime<M> {
1515
type YieldNowFuture = YieldNow<M>;
1616

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

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

3434
fn poll(

0 commit comments

Comments
 (0)