diff --git a/src/app/browser/window/tab/item/action/load.rs b/src/app/browser/window/tab/item/action/load.rs index 88e83f91..e11da482 100644 --- a/src/app/browser/window/tab/item/action/load.rs +++ b/src/app/browser/window/tab/item/action/load.rs @@ -34,14 +34,7 @@ impl Load { /// with formatted for this action [Variant](https://docs.gtk.org/glib/struct.Variant.html) value pub fn activate(&self, request: Option<&str>, is_history: bool) { self.simple_action.activate(Some( - &( - match request { - Some(value) => String::from(value), - None => String::new(), - }, - is_history, - ) - .to_variant(), + &(request.unwrap_or_default(), is_history).to_variant(), )); }