Fix clippy warnings

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

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

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

Loading…
Cancel
Save