Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alexandru Macovei · committed by David Peter · parent 33feb51 · Browse files · 6 files+13 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+13 added−13 removed

  • tests:+1 added−1 removed
  • other:+12 added−12 removed

6 files+13 added−13 removed

modified:src/exec/job.rs+1 added-1 removed
8 unmodified lines
9use super::CommandTemplate;10use std::path::PathBuf;11use std::sync::mpsc::Receiver;12use std::sync::{Arc, Mutex};13use walk::WorkerResult;13use crate::walk::WorkerResult;1415/// An event loop that listens for inputs from the `rx` receiver. Each received input will16/// generate a command with the supplied command template. The generated command will then17/// be executed, and this process will continue until the receiver's sender has closed.
42 unmodified lines
modified:src/internal/opts.rs+2 added-2 removed
1use exec::CommandTemplate;2use internal::{1use crate::exec::CommandTemplate;2use crate::internal::{3 filter::{SizeFilter, TimeFilter},4 FileTypes,5};6use lscolors::LsColors;
72 unmodified lines
modified:src/main.rs+2 added-2 removed
39 unmodified lines
40use atty::Stream;41use lscolors::LsColors;42use regex::{RegexBuilder, RegexSetBuilder};4344use exec::CommandTemplate;45use internal::{44use crate::exec::CommandTemplate;45use crate::internal::{46 filter::{SizeFilter, TimeFilter},47 opts::FdOptions,48 pattern_has_uppercase_char, transform_args_with_exec, FileTypes,49};
228 unmodified lines
modified:src/output.rs+2 added-2 removed
4 unmodified lines
5// at your option. All files in the project carrying such6// notice may not be copied, modified, or distributed except7// according to those terms.89use exit_codes::ExitCode;10use internal::opts::FdOptions;9use crate::exit_codes::ExitCode;10use crate::internal::opts::FdOptions;11use lscolors::{LsColors, Style};1213use std::io::{self, Write};14use std::ops::Deref;
94 unmodified lines
modified:src/walk.rs+5 added-5 removed
6 unmodified lines
7// according to those terms.89extern crate ctrlc;1011use exec;12use exit_codes::ExitCode;13use fshelper;14use internal::{opts::FdOptions, MAX_BUFFER_LENGTH};15use output;11use crate::exec;12use crate::exit_codes::ExitCode;13use crate::fshelper;14use crate::internal::{opts::FdOptions, MAX_BUFFER_LENGTH};15use crate::output;1617use std::error::Error;18use std::path::PathBuf;19use std::process;
337 unmodified lines
modified:tests/tests.rs+1 added-1 removed
17 unmodified lines
18use std::fs;19use std::io::Write;20use std::path::Path;21use std::time::{Duration, SystemTime};22use testenv::TestEnv;22use crate::testenv::TestEnv;2324static DEFAULT_DIRS: &'static [&'static str] = &["one/two/three", "one/two/three/directory_foo"];2526static DEFAULT_FILES: &'static [&'static str] = &[
1211 unmodified lines