Skip to content
Myr

[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

9 files+6 added−32 removed

modified:src/exec/job.rs+1 added-1 removed
5 unmodified lines
6// notice may not be copied, modified, or distributed except7// according to those terms.89use super::CommandTemplate;10use crate::walk::WorkerResult;11use std::path::PathBuf;12use std::sync::mpsc::Receiver;13use std::sync::{Arc, Mutex};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/exec/mod.rs+1 added
15 unmodified lines
16use std::path::{Path, PathBuf};17use std::process::{Command, Stdio};18use std::sync::{Arc, Mutex};1920use lazy_static::lazy_static;21use regex::Regex;2223use self::command::execute_command;24use self::input::{basename, dirname, remove_extension};
321 unmodified lines
modified:src/internal/filter/size.rs+1 added
1use lazy_static::lazy_static;2use regex::Regex;34lazy_static! {5 static ref SIZE_CAPTURES: Regex = { Regex::new(r"(?i)^([+-])(\d+)(b|[kmgt]i?b?)$").unwrap() };
204 unmodified lines
modified:src/app.rs+1 added-1 removed
5 unmodified lines
6// notice may not be copied, modified, or distributed except7// according to those terms.8use std::collections::HashMap;910use clap::{App, AppSettings, Arg};10use clap::{crate_version, App, AppSettings, Arg};1112struct Help {13 short: &'static str,14 long: &'static str,
365 unmodified lines
modified:src/main.rs-15 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.89extern crate ansi_term;10extern crate atty;9#[macro_use]12extern crate clap;13extern crate ignore;14#[macro_use]15extern crate lazy_static;16extern crate humantime;17#[cfg(all(unix, not(target_os = "redox")))]18extern crate libc;19extern crate lscolors;20extern crate num_cpus;21extern crate regex;22extern crate regex_syntax;2324#[macro_use]10mod internal;1112mod app;13mod exec;
249 unmodified lines
modified:src/walk.rs-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.89extern crate ctrlc;109use crate::exec;10use crate::exit_codes::ExitCode;11use crate::fshelper;12use crate::internal::{opts::FdOptions, MAX_BUFFER_LENGTH};
342 unmodified lines
modified:tests/testenv/mod.rs+1 added-4 removed
18 unmodified lines
1920#[cfg(windows)]21use std::os::windows;2223extern crate diff;24extern crate tempdir;23use tempdir::TempDir;2426use self::tempdir::TempDir;2725/// Environment for the integration tests.26pub struct TestEnv {27 /// Temporary working directory.28 temp_dir: TempDir,
215 unmodified lines
modified:tests/tests.rs+1 added-5 removed
6 unmodified lines
7// according to those terms.89//! Integration tests for the CLI interface of fd.1011extern crate filetime;12extern crate humantime;13extern crate regex;1411mod testenv;1213use crate::testenv::TestEnv;14use regex::escape;15use std::fs;16use std::io::Write;17use std::path::Path;18use std::time::{Duration, SystemTime};22use crate::testenv::TestEnv;1920static DEFAULT_DIRS: &'static [&'static str] = &["one/two/three", "one/two/three/directory_foo"];2122static DEFAULT_FILES: &'static [&'static str] = &[
1211 unmodified lines
modified:build.rs-4 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.89#[macro_use]10extern crate clap;11extern crate version_check;129use clap::Shell;10use std::fs;11use std::io::{self, Write};12use std::process::exit;
26 unmodified lines