From 3446fe38f176691f226ddae25a0f6bdb87edad05 Mon Sep 17 00:00:00 2001 From: Ethan Wu Date: Wed, 15 Sep 2021 22:29:20 -0700 Subject: [PATCH] fix impl of `FromStr` for `Compression` --- src/bspm/installer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bspm/installer.rs b/src/bspm/installer.rs index 8b012b1..86cd134 100644 --- a/src/bspm/installer.rs +++ b/src/bspm/installer.rs @@ -323,8 +323,8 @@ impl std::str::FromStr for Compression { fn from_str(s: &str) -> Result { match s { "gzip" => Ok(Compression::Gzip), - "bzip2" => Ok(Compression::Gzip), - "xz" => Ok(Compression::Gzip), + "bzip2" => Ok(Compression::Bzip2), + "xz" => Ok(Compression::Xz), "none" => Ok(Compression::None), _ => Err(format!("Invalid compression: {}", s)), }