dircolors: make a function and an enum private

This commit is contained in:
Daniel Hofstetter
2026-06-02 11:38:32 +02:00
committed by Sylvestre Ledru
parent f1073d7c9e
commit 390cd77f6e
+2 -2
View File
@@ -30,14 +30,14 @@ mod options {
}
#[derive(PartialEq, Eq, Debug)]
pub enum OutputFmt {
enum OutputFmt {
Shell,
CShell,
Display,
Unknown,
}
pub fn guess_syntax() -> OutputFmt {
fn guess_syntax() -> OutputFmt {
match env::var("SHELL") {
Ok(ref s) if !s.is_empty() => {
let shell_path: &Path = s.as_ref();