From bdd85b9bf4e04c136cd1658b1210c1adf7d917cc Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Thu, 8 Jan 2026 22:41:34 +0000 Subject: [PATCH] Revert "build: Attempt to add deb musl build." This reverts commit 07be4261b9b077dc0eee4650c634954e801ed955. --- config/config.toml | 3 --- src/config.rs | 9 --------- src/main.rs | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/config/config.toml b/config/config.toml index 9b43aa6..b3b0fa6 100644 --- a/config/config.toml +++ b/config/config.toml @@ -28,6 +28,3 @@ ignore-hidden=true output-format="si" number-of-lines=5 - -# To keep the .git directory collapsed -collapse=[".git"] diff --git a/src/config.rs b/src/config.rs index 141500e..6619331 100644 --- a/src/config.rs +++ b/src/config.rs @@ -38,7 +38,6 @@ pub struct Config { pub files0_from: Option, pub number_of_lines: Option, pub files_from: Option, - pub collapse: Option>, } impl Config { @@ -178,14 +177,6 @@ impl Config { pub fn get_changed_time_operator(&self, options: &Cli) -> Option<(Operator, i64)> { get_filter_time_operator(options.ctime.as_ref(), get_current_date_epoch_seconds()) } - - pub fn get_collapse(&self, options: &Cli) -> Option> { - if self.collapse.is_none() { - options.collapse.clone() - } else { - self.collapse.clone() - } - } } fn get_current_date_epoch_seconds() -> i64 { diff --git a/src/main.rs b/src/main.rs index b9c7593..5e80681 100644 --- a/src/main.rs +++ b/src/main.rs @@ -224,7 +224,7 @@ fn main() { indicator.spawn(output_format.clone()) } - let keep_collapsed: HashSet = match config.get_collapse(&options) { + let keep_collapsed: HashSet = match options.collapse { Some(ref collapse) => { let mut combined_dirs = HashSet::new(); for collapse_dir in collapse {