Fixing clippy warnings

This commit is contained in:
Tomasz Drwięga
2016-05-26 11:49:58 +02:00
parent 32298cad6b
commit 5b0c936fee
3 changed files with 3 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ impl Informant {
}
}
#[cfg_attr(feature="dev", allow(match_bool))]
pub fn tick(&self, client: &Client, maybe_sync: Option<&EthSync>) {
let elapsed = self.last_tick.read().unwrap().elapsed();
if elapsed < Duration::from_secs(5) {