mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-08-26 06:21:58 +00:00
apply clippy corrections
This commit is contained in:
parent
33807e03ac
commit
aafd3b5db3
@ -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
|
||||
|
@ -32,7 +32,7 @@ impl Format for usize {
|
||||
pub fn uri_to_title(uri: >k::glib::Uri) -> gtk::glib::GString {
|
||||
let path = uri.path();
|
||||
|
||||
if path.split('/').last().unwrap_or_default().is_empty() {
|
||||
if path.split('/').next_back().unwrap_or_default().is_empty() {
|
||||
match uri.host() {
|
||||
Some(host) => host,
|
||||
None => "Untitled".into(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user