mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 07:54:14 +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`
|
/// 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user