mirror of
https://github.com/sharkdp/fd
synced 2024-09-30 04:55:28 +00:00
Clean up include order
This commit is contained in:
parent
f9372b55d5
commit
53557ef471
3
build.rs
3
build.rs
|
@ -1,8 +1,9 @@
|
|||
use clap::Shell;
|
||||
use std::fs;
|
||||
use std::io::{self, Write};
|
||||
use std::process::exit;
|
||||
|
||||
use clap::Shell;
|
||||
|
||||
include!("src/app.rs");
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#[macro_use]
|
||||
mod error;
|
||||
|
||||
mod app;
|
||||
mod error;
|
||||
mod exec;
|
||||
mod exit_codes;
|
||||
mod filesystem;
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
use std::{path::PathBuf, sync::Arc, time::Duration};
|
||||
|
||||
use lscolors::LsColors;
|
||||
use regex::bytes::RegexSet;
|
||||
|
||||
use crate::exec::CommandTemplate;
|
||||
use crate::filetypes::FileTypes;
|
||||
use crate::filter::{SizeFilter, TimeFilter};
|
||||
use lscolors::LsColors;
|
||||
use regex::bytes::RegexSet;
|
||||
use std::{path::PathBuf, sync::Arc, time::Duration};
|
||||
|
||||
/// Configuration options for *fd*.
|
||||
pub struct Options {
|
||||
|
|
|
@ -1,16 +1,12 @@
|
|||
use std;
|
||||
use std::env;
|
||||
use std::fs;
|
||||
use std::io;
|
||||
use std::io::Write;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process;
|
||||
|
||||
use std::io::{self, Write};
|
||||
#[cfg(unix)]
|
||||
use std::os::unix;
|
||||
|
||||
#[cfg(windows)]
|
||||
use std::os::windows;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process;
|
||||
|
||||
use tempdir::TempDir;
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
//! Integration tests for the CLI interface of fd.
|
||||
|
||||
mod testenv;
|
||||
|
||||
use crate::testenv::TestEnv;
|
||||
use regex::escape;
|
||||
use std::fs;
|
||||
use std::io::Write;
|
||||
use std::path::Path;
|
||||
use std::time::{Duration, SystemTime};
|
||||
|
||||
use regex::escape;
|
||||
|
||||
use crate::testenv::TestEnv;
|
||||
|
||||
static DEFAULT_DIRS: &'static [&'static str] = &["one/two/three", "one/two/three/directory_foo"];
|
||||
|
||||
static DEFAULT_FILES: &'static [&'static str] = &[
|
||||
|
|
Loading…
Reference in a new issue