From c86edc54435a57466204bf41a0166c7b6f687aeb Mon Sep 17 00:00:00 2001 From: Erwin van Eijk <235739+erwinvaneijk@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:34:37 +0200 Subject: [PATCH] fix: rustfmt errors --- src/fs/filter.rs | 4 ++-- src/options/filter.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fs/filter.rs b/src/fs/filter.rs index a3da11959..864dd4dfb 100644 --- a/src/fs/filter.rs +++ b/src/fs/filter.rs @@ -33,11 +33,11 @@ pub enum FileFilterFlags { /// Whether to explicitly show symlinks ShowSymlinks, - + /// Whether directories should be listed first, and other types of file /// second. Some users prefer it like this. ListDirsFirst, - + /// Whether directories should be listed as the last items, after other /// types of file. Some users prefer it like this. ListDirsLast, diff --git a/src/options/filter.rs b/src/options/filter.rs index 4f852eafe..dbea01f20 100644 --- a/src/options/filter.rs +++ b/src/options/filter.rs @@ -27,7 +27,7 @@ impl FileFilter { (matches.has(&flags::NO_SYMLINKS)?, FFF::NoSymlinks), (matches.has(&flags::SHOW_SYMLINKS)?, FFF::ShowSymlinks), (matches.has(&flags::DIRS_LAST)?, FFF::ListDirsLast), - (matches.has(&flags::DIRS_FIRST)?, FFF::ListDirsFirst) + (matches.has(&flags::DIRS_FIRST)?, FFF::ListDirsFirst), ] { if *has { filter_flags.push(flag.clone());