Fix clippy lints for all crates and features
... and check those in CI as well!
This commit is contained in:
parent
d53cc5498b
commit
2065a40f64
55 changed files with 237 additions and 232 deletions
|
|
@ -67,13 +67,12 @@ impl Application for Stopwatch {
|
|||
self.state = State::Idle;
|
||||
}
|
||||
},
|
||||
Message::Tick(now) => match &mut self.state {
|
||||
State::Ticking { last_tick } => {
|
||||
Message::Tick(now) => {
|
||||
if let State::Ticking { last_tick } = &mut self.state {
|
||||
self.duration += now - *last_tick;
|
||||
*last_tick = now;
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
}
|
||||
Message::Reset => {
|
||||
self.duration = Duration::default();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue