diff --git a/src/internal/file_types.rs b/src/filetypes.rs similarity index 100% rename from src/internal/file_types.rs rename to src/filetypes.rs diff --git a/src/internal/mod.rs b/src/internal/mod.rs index 3235f45..1e8241a 100644 --- a/src/internal/mod.rs +++ b/src/internal/mod.rs @@ -4,9 +4,6 @@ use std::ffi::{OsStr, OsString}; use regex_syntax::hir::Hir; use regex_syntax::ParserBuilder; -pub use self::file_types::FileTypes; - -mod file_types; pub mod filter; pub mod opts; diff --git a/src/internal/opts.rs b/src/internal/opts.rs index 88ace4e..e46a3bf 100644 --- a/src/internal/opts.rs +++ b/src/internal/opts.rs @@ -1,8 +1,6 @@ use crate::exec::CommandTemplate; -use crate::internal::{ - filter::{SizeFilter, TimeFilter}, - FileTypes, -}; +use crate::filetypes::FileTypes; +use crate::internal::filter::{SizeFilter, TimeFilter}; use lscolors::LsColors; use regex::bytes::RegexSet; use std::{path::PathBuf, sync::Arc, time::Duration}; diff --git a/src/main.rs b/src/main.rs index fbf7f24..1637c05 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ mod internal; mod app; mod exec; mod exit_codes; +mod filetypes; pub mod fshelper; mod output; mod walk; @@ -20,10 +21,11 @@ use lscolors::LsColors; use regex::bytes::{RegexBuilder, RegexSetBuilder}; use crate::exec::CommandTemplate; +use crate::filetypes::FileTypes; use crate::internal::{ filter::{SizeFilter, TimeFilter}, opts::FdOptions, - pattern_has_uppercase_char, transform_args_with_exec, FileTypes, + pattern_has_uppercase_char, transform_args_with_exec, }; // We use jemalloc for performance reasons, see https://github.com/sharkdp/fd/pull/481