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`
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(),
@ -131,9 +131,8 @@ impl Request {
"/",
None,
None,
)),
None => None,
}
)
})
}
/// Get request value in `download:` format