diff --git a/src/commands/download.rs b/src/commands/download.rs index 0bf6e300..f4d412a1 100644 --- a/src/commands/download.rs +++ b/src/commands/download.rs @@ -22,8 +22,8 @@ const NINJA_DOWNLOAD: &str = const NINJA_DOWNLOAD: &str = "https://github.com/ninja-build/ninja/releases/latest/download/ninja-win.zip"; -/// CMAKE -/// TODO: Extract tars on Linux/Mac +// CMAKE +// TODO: Extract tars on Linux/Mac #[cfg(windows)] const ADB_DOWNLOAD: &str = diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 33ca5985..74523ae4 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -33,7 +33,7 @@ pub struct Opt { // If provided, outputs the completion file for given shell #[arg(long = "generate", value_enum)] pub generator: Option, - + #[command(subcommand)] pub command: Option, } diff --git a/src/models/package.rs b/src/models/package.rs index 247d1228..ecf067a9 100644 --- a/src/models/package.rs +++ b/src/models/package.rs @@ -224,7 +224,7 @@ impl SharedPackageConfigExtensions for SharedPackageConfig { version_range: dep.version_range.clone(), id: dep.id.clone(), mod_link: shared_dep.dependency.additional_data.mod_link.clone(), - required: dep.additional_data.required + required: dep.additional_data.required, }) .collect(); diff --git a/src/network/agent.rs b/src/network/agent.rs index 77dae6d7..78e77409 100644 --- a/src/network/agent.rs +++ b/src/network/agent.rs @@ -7,11 +7,10 @@ use std::{ }; use color_eyre::{ - eyre::{bail, ensure, eyre, Context}, + eyre::{ensure, Context}, Result, }; use pbr::ProgressBar; -use reqwest::StatusCode; use crate::models::config::get_combine_config; @@ -56,7 +55,7 @@ where match read { // EOF Ok(0) => break, - + Ok(amount) => { written += amount; buffer.write_all(&temp_buf[0..amount])?; diff --git a/src/repository/qpackages.rs b/src/repository/qpackages.rs index d6b1f296..36cc84bb 100644 --- a/src/repository/qpackages.rs +++ b/src/repository/qpackages.rs @@ -318,7 +318,7 @@ impl QPMRepository { } } - std::fs::rename(&temp_path, &path) + std::fs::rename(&temp_path, path) .with_context(|| format!("Unable to rename {temp_path:?} to {path:?}"))?; Ok(()) diff --git a/src/resolver/dependency.rs b/src/resolver/dependency.rs index de473728..ad9106f9 100644 --- a/src/resolver/dependency.rs +++ b/src/resolver/dependency.rs @@ -32,8 +32,8 @@ where repo: &'b R, } -impl<'a, 'b, R: Repository> DependencyProvider - for PackageDependencyResolver<'a, 'b, R> +impl DependencyProvider + for PackageDependencyResolver<'_, '_, R> { fn choose_package_version, U: Borrow>>( &self,