apply clippy corrections

This commit is contained in:
yggverse 2025-01-23 14:40:48 +02:00
parent 399519f578
commit bd766a2154

View File

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