Fix clippy lints

This commit is contained in:
Paul Hauner
2019-01-04 18:30:24 +11:00
parent 62640ad691
commit 3876e29f6e
9 changed files with 25 additions and 18 deletions

View File

@@ -26,7 +26,7 @@ impl SystemTimeSlotClock {
if slot_duration_seconds == 0 {
Err(Error::SlotDurationIsZero)
} else {
Ok(SystemTimeSlotClock {
Ok(Self {
genesis_seconds,
slot_duration_seconds,
})