1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #7143 from cakebaker/dircolors_move_use_to_top

dircolors: move `use` declaration to top
This commit is contained in:
Sylvestre Ledru 2025-01-15 14:26:50 +01:00 committed by GitHub
commit e61147b154
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ use clap::{crate_version, Arg, ArgAction, Command};
use uucore::colors::{FILE_ATTRIBUTE_CODES, FILE_COLORS, FILE_TYPES, TERMS}; use uucore::colors::{FILE_ATTRIBUTE_CODES, FILE_COLORS, FILE_TYPES, TERMS};
use uucore::display::Quotable; use uucore::display::Quotable;
use uucore::error::{UResult, USimpleError, UUsageError}; use uucore::error::{UResult, USimpleError, UUsageError};
use uucore::{help_about, help_section, help_usage}; use uucore::{format_usage, help_about, help_section, help_usage, parse_glob};
mod options { mod options {
pub const BOURNE_SHELL: &str = "bourne-shell"; pub const BOURNE_SHELL: &str = "bourne-shell";
@ -358,7 +358,6 @@ enum ParseState {
Pass, Pass,
} }
use uucore::{format_usage, parse_glob};
fn parse<T>(user_input: T, fmt: &OutputFmt, fp: &str) -> Result<String, String> fn parse<T>(user_input: T, fmt: &OutputFmt, fp: &str) -> Result<String, String>
where where
T: IntoIterator, T: IntoIterator,