mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-26 19:14:13 +00:00
apply clippy corrections
This commit is contained in:
parent
399519f578
commit
bd766a2154
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user