Fix clippy warnings

feature/lookup-installed
trivernis 1 year ago
parent 97d73c9e36
commit b628d8860c
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -116,6 +116,7 @@ impl Repository {
})) }))
.await .await
{ {
#[allow(clippy::question_mark)]
if let Err(e) = result { if let Err(e) = result {
return Err(e); return Err(e);
} }

@ -167,7 +167,7 @@ impl Versions {
.collect::<Vec<_>>(); .collect::<Vec<_>>();
let version = fulfilling_versions.last()?.clone().into(); let version = fulfilling_versions.last()?.clone().into();
self.versions.get(&version).into() self.versions.get(&version)
} }
/// Returns the info for the given version /// Returns the info for the given version
@ -186,7 +186,7 @@ impl Versions {
.collect::<Vec<_>>(); .collect::<Vec<_>>();
let version = fulfilling_versions.last()?; let version = fulfilling_versions.last()?;
self.versions.get(&version).into() self.versions.get(version)
} }
/// Creates the list of sorted versions /// Creates the list of sorted versions

Loading…
Cancel
Save