fix: remove unused variable and add missing FromStr import

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-15 17:11:49 -03:00
parent 898622ff6c
commit b9d79d2fe1
3 changed files with 4 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ pub fn generate_status_info(
},
};
let is_default = compression_type == default_type;
let _is_default = compression_type == default_type;
let is_enabled = enabled_compression_type.as_ref().map_or(false, |ct| *ct == compression_type);
let binary = if compression_program.program.is_empty() {
"<INTERNAL>".to_string()

View File

@@ -63,11 +63,8 @@ pub async fn handle_status(
.cloned()
.collect();
let enabled_compression_type = if let Some(compression_name) = &state.settings.compression {
CompressionType::from_str(compression_name).ok()
} else {
Some(crate::compression_engine::default_compression_type())
};
// Default to LZ4 compression for the API status endpoint
let enabled_compression_type = Some(CompressionType::LZ4);
let status_info = generate_status_info(
state.data_dir.clone(),

View File

@@ -1,6 +1,7 @@
use clap::*;
use is_terminal::IsTerminal;
use std::path::PathBuf;
use std::str::FromStr;
use crate::modes::common::{get_format_box_chars_no_border_line_separator, OutputFormat};
use crate::config;