mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
apply clippy corrections
This commit is contained in:
parent
33807e03ac
commit
aafd3b5db3
2 changed files with 3 additions and 4 deletions
|
|
@ -285,15 +285,14 @@ impl Dialog for PreferencesDialog {
|
|||
g.add(&{
|
||||
let c = e.time().difference(info.event[i].time()).as_milliseconds(); // current
|
||||
let s = e.time().difference(t).as_milliseconds(); // sum
|
||||
let a = row(
|
||||
row(
|
||||
e.name(),
|
||||
if c == s {
|
||||
format!("+{c} ms")
|
||||
} else {
|
||||
format!("+{c} / {s} ms")
|
||||
},
|
||||
);
|
||||
a
|
||||
)
|
||||
})
|
||||
}
|
||||
g
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue