Clippy suggestions

This commit is contained in:
Félix Saparelli 2022-06-01 00:47:32 +12:00
parent 13a8e1e5fe
commit ac74da4a27
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474
6 changed files with 17 additions and 25 deletions

View file

@ -191,9 +191,8 @@ async fn entry() -> Result<()> {
package
.metadata
.as_ref()
.map(|m| m.binstall.clone())
.flatten()
.unwrap_or(PkgMeta::default()),
.and_then(|m| m.binstall.clone())
.unwrap_or_default(),
manifest.bin,
);
@ -254,6 +253,7 @@ async fn entry() -> Result<()> {
}
}
#[allow(clippy::too_many_arguments)]
async fn install_from_package(
binaries: Vec<Product>,
fetcher: &dyn Fetcher,