Add clippy suggestions

This commit is contained in:
Age Manning
2019-03-30 19:58:19 +11:00
parent 51ffbc07d2
commit 9a6ecc4665
5 changed files with 22 additions and 32 deletions

View File

@@ -69,7 +69,7 @@ impl<U: BeaconNodeDuties, S: Signer + Display> DutiesManager<U, S> {
// duties have changed
//TODO: Duties could be large here. Remove from display and avoid the clone.
self.duties_map.write()?.insert(epoch, duties.clone());
return Ok(UpdateOutcome::DutiesChanged(epoch, duties));
Ok(UpdateOutcome::DutiesChanged(epoch, duties))
}
/// A future wrapping around `update()`. This will perform logic based upon the update