diff --git a/src/common/status.rs b/src/common/status.rs index 2bc08bb..f6e0a60 100644 --- a/src/common/status.rs +++ b/src/common/status.rs @@ -74,8 +74,18 @@ pub fn generate_status_info( for compression_type in sorted_compression_types { let (binary, compress, decompress, supported) = match get_compression_engine(compression_type.clone()) { - Ok(engine) if engine.is_supported() => engine.get_status_info(), - _ => ("".to_string(), "".to_string(), "".to_string(), false), + Ok(engine) => { + let supp = engine.is_supported(); + if supp && engine.is_internal() { + ("".to_string(), "".to_string(), "".to_string(), supp) + } else if supp { + let (b, c, d) = engine.get_status_info(); + (b, c, d, supp) + } else { + ("".to_string(), "".to_string(), "".to_string(), supp) + } + } + Err(_) => ("".to_string(), "".to_string(), "".to_string(), false), }; let is_enabled = enabled_compression_type.as_ref().map_or(false, |ct| *ct == compression_type);