mirror of https://github.com/bastion-rs/bastion
Fix clippy warnings (#301)
This commit is contained in:
parent
fb38a402a5
commit
599a8525c4
|
@ -11,7 +11,7 @@ use std::mem::ManuallyDrop;
|
|||
use std::pin::Pin;
|
||||
use std::sync::Arc;
|
||||
use std::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};
|
||||
use std::{mem, panic};
|
||||
use std::mem;
|
||||
|
||||
///
|
||||
/// This method blocks the current thread until passed future is resolved with an output (including the panic).
|
||||
|
|
|
@ -426,7 +426,7 @@ impl BastionContext {
|
|||
message = self.recv().fuse() => {
|
||||
message.map_err(|_| ReceiveError::Other)
|
||||
},
|
||||
duration = Delay::new(timeout).fuse() => {
|
||||
_duration = Delay::new(timeout).fuse() => {
|
||||
Err(ReceiveError::Timeout(timeout))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue