diff --git a/src/app/browser/window/tab/item/page/navigation/request/info/dialog.rs b/src/app/browser/window/tab/item/page/navigation/request/info/dialog.rs index 3c611c49..6584d565 100644 --- a/src/app/browser/window/tab/item/page/navigation/request/info/dialog.rs +++ b/src/app/browser/window/tab/item/page/navigation/request/info/dialog.rs @@ -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 diff --git a/src/tool.rs b/src/tool.rs index 5ef2a263..e4bd9631 100644 --- a/src/tool.rs +++ b/src/tool.rs @@ -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(),