Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Jan 4, 2025
1 parent c24b84b commit cffd157
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/commands/ndk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ pub mod terminal;
pub mod utils;

pub use qpm_package as package;
pub use qpm_qmod as qmod;
pub use qpm_qmod as qmod;
7 changes: 5 additions & 2 deletions src/repository/qpackages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(()) };
Expand Down Expand Up @@ -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());
}
Expand Down
1 change: 0 additions & 1 deletion src/tests/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/tests/network/qpackages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit cffd157

Please sign in to comment.