[2018 edition] remove all extern crate lines from sources
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 630f173 · Browse files · 9 files·+6 added−32 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
9 files+6 added−32 removed
- tests:+2 added−9 removed
- other:+4 added−23 removed
Provenance
- Commit
051ff59- Tree
abef1e6- Author
Alexandru Macovei <alexnmaco@gmail.com>- Committer
David Peter <sharkdp@users.noreply.github.com>- Parent
630f173
9 files changed+6 added−32 removed
modified:src/exec/job.rs+1 added-1 removed
5 unmodified lines6 // notice may not be copied, modified, or distributed except7 // according to those terms.8 9 use super::CommandTemplate;10+use crate::walk::WorkerResult;11 use std::path::PathBuf;12 use std::sync::mpsc::Receiver;13 use std::sync::{Arc, Mutex};13-use crate::walk::WorkerResult;14 15 /// 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 linesmodified:src/exec/mod.rs+1 added
15 unmodified lines16 use std::path::{Path, PathBuf};17 use std::process::{Command, Stdio};18 use std::sync::{Arc, Mutex};19 20+use lazy_static::lazy_static;21 use regex::Regex;22 23 use self::command::execute_command;24 use self::input::{basename, dirname, remove_extension};321 unmodified linesmodified:src/internal/filter/size.rs+1 added
1+use lazy_static::lazy_static;2 use regex::Regex;3 4 lazy_static! {5 static ref SIZE_CAPTURES: Regex = { Regex::new(r"(?i)^([+-])(\d+)(b|[kmgt]i?b?)$").unwrap() };204 unmodified linesmodified:src/app.rs+1 added-1 removed
5 unmodified lines6 // notice may not be copied, modified, or distributed except7 // according to those terms.8 use std::collections::HashMap;9 10-use clap::{App, AppSettings, Arg};10+use clap::{crate_version, App, AppSettings, Arg};11 12 struct Help {13 short: &'static str,14 long: &'static str,365 unmodified linesmodified:src/main.rs-15 removed
4 unmodified lines5 // at your option. All files in the project carrying such6 // notice may not be copied, modified, or distributed except7 // according to those terms.8 9-extern crate ansi_term;10-extern crate atty;9 #[macro_use]12-extern crate clap;13-extern crate ignore;14-#[macro_use]15-extern crate lazy_static;16-extern crate humantime;17-#[cfg(all(unix, not(target_os = "redox")))]18-extern crate libc;19-extern crate lscolors;20-extern crate num_cpus;21-extern crate regex;22-extern crate regex_syntax;23-24-#[macro_use]10 mod internal;11 12 mod app;13 mod exec;249 unmodified linesmodified:src/walk.rs-2 removed
4 unmodified lines5 // at your option. All files in the project carrying such6 // notice may not be copied, modified, or distributed except7 // according to those terms.8 9-extern crate ctrlc;10-9 use crate::exec;10 use crate::exit_codes::ExitCode;11 use crate::fshelper;12 use crate::internal::{opts::FdOptions, MAX_BUFFER_LENGTH};342 unmodified linesmodified:tests/testenv/mod.rs+1 added-4 removed
18 unmodified lines19 20 #[cfg(windows)]21 use std::os::windows;22 23-extern crate diff;24-extern crate tempdir;23+use tempdir::TempDir;24 26-use self::tempdir::TempDir;27-25 /// Environment for the integration tests.26 pub struct TestEnv {27 /// Temporary working directory.28 temp_dir: TempDir,215 unmodified linesmodified:tests/tests.rs+1 added-5 removed
6 unmodified lines7 // according to those terms.8 9 //! Integration tests for the CLI interface of fd.10 11-extern crate filetime;12-extern crate humantime;13-extern crate regex;14-11 mod testenv;12 13+use crate::testenv::TestEnv;14 use regex::escape;15 use std::fs;16 use std::io::Write;17 use std::path::Path;18 use std::time::{Duration, SystemTime};22-use crate::testenv::TestEnv;19 20 static DEFAULT_DIRS: &'static [&'static str] = &["one/two/three", "one/two/three/directory_foo"];21 22 static DEFAULT_FILES: &'static [&'static str] = &[1211 unmodified linesmodified:build.rs-4 removed
4 unmodified lines5 // at your option. All files in the project carrying such6 // notice may not be copied, modified, or distributed except7 // according to those terms.8 9-#[macro_use]10-extern crate clap;11-extern crate version_check;12-9 use clap::Shell;10 use std::fs;11 use std::io::{self, Write};12 use std::process::exit;26 unmodified lines