From b5c41acbe810e06dbdf638bac973000f66562649 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Sat, 21 Sep 2024 15:50:19 -0700 Subject: [PATCH] Appease rustfmt --- src/operations.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/operations.rs b/src/operations.rs index 9a8c890b..806330b2 100644 --- a/src/operations.rs +++ b/src/operations.rs @@ -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) @@ -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") {