mirror of
https://github.com/sharkdp/fd
synced 2024-10-06 07:49:18 +00:00
[2018 edition] run cargo fix edition and edition-idioms
This commit is contained in:
parent
33feb511f0
commit
64e6ea9fe9
|
@ -10,7 +10,7 @@ use super::CommandTemplate;
|
|||
use std::path::PathBuf;
|
||||
use std::sync::mpsc::Receiver;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use walk::WorkerResult;
|
||||
use crate::walk::WorkerResult;
|
||||
|
||||
/// An event loop that listens for inputs from the `rx` receiver. Each received input will
|
||||
/// generate a command with the supplied command template. The generated command will then
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use exec::CommandTemplate;
|
||||
use internal::{
|
||||
use crate::exec::CommandTemplate;
|
||||
use crate::internal::{
|
||||
filter::{SizeFilter, TimeFilter},
|
||||
FileTypes,
|
||||
};
|
||||
|
|
|
@ -41,8 +41,8 @@ use atty::Stream;
|
|||
use lscolors::LsColors;
|
||||
use regex::{RegexBuilder, RegexSetBuilder};
|
||||
|
||||
use exec::CommandTemplate;
|
||||
use internal::{
|
||||
use crate::exec::CommandTemplate;
|
||||
use crate::internal::{
|
||||
filter::{SizeFilter, TimeFilter},
|
||||
opts::FdOptions,
|
||||
pattern_has_uppercase_char, transform_args_with_exec, FileTypes,
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
// notice may not be copied, modified, or distributed except
|
||||
// according to those terms.
|
||||
|
||||
use exit_codes::ExitCode;
|
||||
use internal::opts::FdOptions;
|
||||
use crate::exit_codes::ExitCode;
|
||||
use crate::internal::opts::FdOptions;
|
||||
use lscolors::{LsColors, Style};
|
||||
|
||||
use std::io::{self, Write};
|
||||
|
|
10
src/walk.rs
10
src/walk.rs
|
@ -8,11 +8,11 @@
|
|||
|
||||
extern crate ctrlc;
|
||||
|
||||
use exec;
|
||||
use exit_codes::ExitCode;
|
||||
use fshelper;
|
||||
use internal::{opts::FdOptions, MAX_BUFFER_LENGTH};
|
||||
use output;
|
||||
use crate::exec;
|
||||
use crate::exit_codes::ExitCode;
|
||||
use crate::fshelper;
|
||||
use crate::internal::{opts::FdOptions, MAX_BUFFER_LENGTH};
|
||||
use crate::output;
|
||||
|
||||
use std::error::Error;
|
||||
use std::path::PathBuf;
|
||||
|
|
|
@ -19,7 +19,7 @@ use std::fs;
|
|||
use std::io::Write;
|
||||
use std::path::Path;
|
||||
use std::time::{Duration, SystemTime};
|
||||
use testenv::TestEnv;
|
||||
use crate::testenv::TestEnv;
|
||||
|
||||
static DEFAULT_DIRS: &'static [&'static str] = &["one/two/three", "one/two/three/directory_foo"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue