Fix clippy warnings (#301)

This commit is contained in:
Mahmut Bulut 2021-02-01 13:29:20 +01:00 committed by GitHub
parent fb38a402a5
commit 599a8525c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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).

View File

@ -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))
}
}