Skip to content

Commit

Permalink
Appease rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Sep 21, 2024
1 parent 76dfa62 commit b5c41ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,11 @@ pub fn download_extract_sans_parent(
// writing, it has not been merged. Thus we'll shell out to command line `tar` on
// FreeBSD in the meantime, and unify the approaches if/when support is available.
if cfg!(target_os = "freebsd") {
unpack_with_cli(response_with_pb, target_path, levels_to_skip)
.with_context(|| context)?;
unpack_with_cli(response_with_pb, target_path, levels_to_skip).with_context(|| context)?;
} else {
let tar = GzDecoder::new(response_with_pb);
let archive = Archive::new(tar);
unpack_sans_parent(archive, target_path, levels_to_skip)
.with_context(|| context)?;
unpack_sans_parent(archive, target_path, levels_to_skip).with_context(|| context)?;
}

Ok(last_modified)
Expand Down Expand Up @@ -603,7 +601,9 @@ pub fn install_non_db_version(
"linux-x86_64" => Ok("bin/linux/x86_64/julia-latest-linux-x86_64.tar.gz".to_owned()),
"linux-i686" => Ok("bin/linux/i686/julia-latest-linux-i686.tar.gz".to_owned()),
"linux-aarch64" => Ok("bin/linux/aarch64/julia-latest-linux-aarch64.tar.gz".to_owned()),
"freebsd-x86_64" => Ok("bin/freebsd/x86_64/julia-latest-freebsd-x86_64.tar.gz".to_owned()),
"freebsd-x86_64" => {
Ok("bin/freebsd/x86_64/julia-latest-freebsd-x86_64.tar.gz".to_owned())
}
_ => Err(anyhow!("Unknown nightly.")),
}
} else if id.starts_with("pr") {
Expand Down

0 comments on commit b5c41ac

Please sign in to comment.