1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

ls: clean up imports

This commit is contained in:
Terts Diepraam 2021-04-25 10:46:51 +02:00
parent e995eea579
commit fc6c7a279e

View file

@ -22,25 +22,22 @@ use lscolors::LsColors;
use number_prefix::NumberPrefix; use number_prefix::NumberPrefix;
use once_cell::unsync::OnceCell; use once_cell::unsync::OnceCell;
use quoting_style::{escape_name, QuotingStyle}; use quoting_style::{escape_name, QuotingStyle};
#[cfg(unix)]
use std::collections::HashMap;
#[cfg(any(unix, target_os = "redox"))]
use std::os::unix::fs::{FileTypeExt, MetadataExt};
#[cfg(windows)] #[cfg(windows)]
use std::os::windows::fs::MetadataExt; use std::os::windows::fs::MetadataExt;
#[cfg(unix)]
use std::time::Duration;
use std::{cmp::Reverse, process::exit};
use std::{ use std::{
cmp::Reverse,
fs::{self, DirEntry, FileType, Metadata}, fs::{self, DirEntry, FileType, Metadata},
io::{stdout, BufWriter, Write}, io::{stdout, BufWriter, Stdout, Write},
path::{Path, PathBuf}, path::{Path, PathBuf},
}; process::exit,
use std::{
io::Stdout,
time::{SystemTime, UNIX_EPOCH}, time::{SystemTime, UNIX_EPOCH},
}; };
#[cfg(unix)]
use std::{
collections::HashMap,
os::unix::fs::{FileTypeExt, MetadataExt},
time::Duration,
};
use term_grid::{Cell, Direction, Filling, Grid, GridOptions}; use term_grid::{Cell, Direction, Filling, Grid, GridOptions};
use time::{strftime, Timespec}; use time::{strftime, Timespec};
#[cfg(unix)] #[cfg(unix)]