[2018 edition] run cargo fix edition and edition-idioms

This commit is contained in:
Alexandru Macovei 2019-01-05 19:17:22 +02:00 committed by David Peter
parent 33feb511f0
commit 64e6ea9fe9
6 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
use exec::CommandTemplate;
use internal::{
use crate::exec::CommandTemplate;
use crate::internal::{
filter::{SizeFilter, TimeFilter},
FileTypes,
};

View File

@ -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,

View File

@ -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};

View File

@ -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;

View File

@ -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"];