Skip to content

Commit

Permalink
apply clippy corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Jan 23, 2025
1 parent 399519f commit bd766a2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/app/browser/window/tab/item/page/navigation/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ impl Request {

/// Parse home [Uri](https://docs.gtk.org/glib/struct.Uri.html) of `Self`
pub fn home(&self) -> Option<Uri> {
match self.uri() {
Some(uri) => Some(Uri::build(
self.uri().map(|uri| {
Uri::build(
UriFlags::NONE,
&uri.scheme(),
uri.userinfo().as_deref(),
Expand All @@ -131,9 +131,8 @@ impl Request {
"/",
None,
None,
)),
None => None,
}
)
})
}

/// Get request value in `download:` format
Expand Down

0 comments on commit bd766a2

Please sign in to comment.