Fix some clippy warnings

This commit is contained in:
Alexander Krotov
2019-11-19 13:27:38 +03:00
committed by Floris Bruynooghe
parent d7c42f3c98
commit 4732085421
6 changed files with 13 additions and 13 deletions

View File

@@ -522,7 +522,7 @@ pub fn perform_smtp_idle(context: &Context) {
let res = cvar.wait_timeout(state, dur).unwrap();
state = res.0;
if state.idle == true || res.1.timed_out() {
if state.idle || res.1.timed_out() {
// We received the notification and the value has been updated, we can leave.
break;
}