Skip to content

Commit

Permalink
Merge pull request #7143 from cakebaker/dircolors_move_use_to_top
Browse files Browse the repository at this point in the history
dircolors: move `use` declaration to top
  • Loading branch information
sylvestre authored Jan 15, 2025
2 parents 05ada0d + 1b5e321 commit e61147b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/uu/dircolors/src/dircolors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use clap::{crate_version, Arg, ArgAction, Command};
use uucore::colors::{FILE_ATTRIBUTE_CODES, FILE_COLORS, FILE_TYPES, TERMS};
use uucore::display::Quotable;
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 {
pub const BOURNE_SHELL: &str = "bourne-shell";
Expand Down Expand Up @@ -358,7 +358,6 @@ enum ParseState {
Pass,
}

use uucore::{format_usage, parse_glob};
fn parse<T>(user_input: T, fmt: &OutputFmt, fp: &str) -> Result<String, String>
where
T: IntoIterator,
Expand Down

0 comments on commit e61147b

Please sign in to comment.