diff --git a/src/commands/ndk.rs b/src/commands/ndk.rs index 40aef07..04e838d 100644 --- a/src/commands/ndk.rs +++ b/src/commands/ndk.rs @@ -79,7 +79,7 @@ pub struct ResolveArgs { download: bool, #[clap(short, long, default_value = "false")] - ignore_missing: bool + ignore_missing: bool, } fn fuzzy_match_ndk<'a>( diff --git a/src/lib.rs b/src/lib.rs index d4ffaa3..bf18d37 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,4 +16,4 @@ pub mod terminal; pub mod utils; pub use qpm_package as package; -pub use qpm_qmod as qmod; \ No newline at end of file +pub use qpm_qmod as qmod; diff --git a/src/repository/qpackages.rs b/src/repository/qpackages.rs index def975d..7a511f6 100644 --- a/src/repository/qpackages.rs +++ b/src/repository/qpackages.rs @@ -285,7 +285,10 @@ impl QPMRepository { // only download if file doesn't exist already if path.exists() { #[cfg(debug_assertions)] - println!("{} already exists, skipping download", path.display().bright_yellow()); + println!( + "{} already exists, skipping download", + path.display().bright_yellow() + ); return Ok(()); } let Some(url) = url_opt else { return Ok(()) }; @@ -323,7 +326,7 @@ impl QPMRepository { std::fs::rename(&temp_path, path) .with_context(|| format!("Unable to rename {temp_path:?} to {path:?}"))?; - if path.exists() { + if path.exists() { #[cfg(debug_assertions)] println!("{} downloaded successfully", path.display().bright_green()); } diff --git a/src/tests/commands.rs b/src/tests/commands.rs index ca3b6d0..3bccb5a 100644 --- a/src/tests/commands.rs +++ b/src/tests/commands.rs @@ -6,7 +6,6 @@ fn trycmd() { // #[cfg(not(test))] let bin = trycmd::cargo::cargo_bin("qpm"); - assert!(bin.exists(), "Binary not found: {:?}", bin); trycmd::TestCases::new() diff --git a/src/tests/network/qpackages.rs b/src/tests/network/qpackages.rs index ffb1bef..93768c2 100644 --- a/src/tests/network/qpackages.rs +++ b/src/tests/network/qpackages.rs @@ -169,7 +169,7 @@ fn resolve_redownload_cache() -> Result<()> { } file_repo.write()?; - let mut repo = repository::useful_default_new(false)?; + let repo = repository::useful_default_new(false)?; Ok(repo) }