Make clippy happy again
This commit is contained in:
parent
e9f6a33bd5
commit
0250e3e2b2
1 changed files with 2 additions and 2 deletions
|
|
@ -146,7 +146,7 @@ impl<'a, T: SetReadTimeout + Read + Write + 'a> Handle<'a, T> {
|
||||||
.get_mut()
|
.get_mut()
|
||||||
.set_read_timeout(Some(timeout))?;
|
.set_read_timeout(Some(timeout))?;
|
||||||
let res = self.wait_inner();
|
let res = self.wait_inner();
|
||||||
self.session.stream.get_mut().set_read_timeout(None).is_ok();
|
let _ = self.session.stream.get_mut().set_read_timeout(None).is_ok();
|
||||||
res
|
res
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -154,7 +154,7 @@ impl<'a, T: SetReadTimeout + Read + Write + 'a> Handle<'a, T> {
|
||||||
impl<'a, T: Read + Write + 'a> Drop for Handle<'a, T> {
|
impl<'a, T: Read + Write + 'a> Drop for Handle<'a, T> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
// we don't want to panic here if we can't terminate the Idle
|
// we don't want to panic here if we can't terminate the Idle
|
||||||
self.terminate().is_ok();
|
let _ = self.terminate().is_ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue