fix clippy warnings on table

This commit is contained in:
Trinity Pointard
2021-04-23 21:42:52 +02:00
committed by Alex Auvolat
parent f05bb111c2
commit f5a0cf0414
10 changed files with 63 additions and 43 deletions
+4 -4
View File
@@ -85,8 +85,8 @@ where
}
}
select! {
_ = tokio::time::sleep(Duration::from_secs(10)).fuse() => (),
_ = must_exit.changed().fuse() => (),
_ = tokio::time::sleep(Duration::from_secs(10)).fuse() => {},
_ = must_exit.changed().fuse() => {},
}
}
}
@@ -120,7 +120,7 @@ where
self.todo_remove_if_equal(&k[..], vhash)?;
}
if entries.len() == 0 {
if entries.is_empty() {
// Nothing to do in this iteration
return Ok(false);
}
@@ -247,7 +247,7 @@ where
}
Ok(GcRPC::Ok)
}
_ => Err(Error::Message(format!("Unexpected GC RPC"))),
_ => Err(Error::Message("Unexpected GC RPC".to_string())),
}
}
}