Remove 'extern crate'

Not necessary anymore. See:
https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html#no-more-extern-crate
This commit is contained in:
Sylvestre Ledru 2020-12-30 00:15:29 +01:00
parent 33987d896d
commit 7942a64231
88 changed files with 0 additions and 251 deletions

View file

@ -5,9 +5,6 @@
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
extern crate textwrap;
extern crate uucore;
use std::cmp;
use std::collections::hash_map::HashMap;
use std::ffi::OsString;

View file

@ -6,7 +6,6 @@
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
extern crate platform_info;
#[macro_use]
extern crate uucore;

View file

@ -7,10 +7,6 @@
// spell-checker:ignore (ToDO) Chmoder cmode fmode fperm fref ugoa RFILE RFILE's
#[cfg(unix)]
extern crate libc;
extern crate walkdir;
#[macro_use]
extern crate uucore;

View file

@ -14,10 +14,8 @@ use uucore::fs::resolve_relative_path;
use uucore::libc::{gid_t, uid_t};
use uucore::perms::{wrap_chown, Verbosity};
extern crate clap;
use clap::{App, Arg};
extern crate walkdir;
use walkdir::WalkDir;
use std::fs::{self, Metadata};

View file

@ -8,8 +8,6 @@
// spell-checker:ignore (ToDO) NEWROOT Userspec pstatus
extern crate getopts;
#[macro_use]
extern crate uucore;
use uucore::entries;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) delim mkdelim
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -10,22 +10,14 @@
// spell-checker:ignore (ToDO) ficlone linkgs lstat nlink nlinks pathbuf reflink strs xattrs
extern crate clap;
extern crate filetime;
#[cfg(target_os = "linux")]
#[macro_use]
extern crate ioctl_sys;
extern crate libc;
#[macro_use]
extern crate quick_error;
#[macro_use]
extern crate uucore;
extern crate walkdir;
#[cfg(unix)]
extern crate xattr;
#[cfg(windows)]
extern crate winapi;
#[cfg(windows)]
use winapi::um::fileapi::CreateFileW;
#[cfg(windows)]

View file

@ -4,8 +4,6 @@
extern crate failure;
#[macro_use]
extern crate uucore;
extern crate getopts;
extern crate regex;
use getopts::Matches;
use regex::Regex;
use std::cmp::Ordering;

View file

@ -9,9 +9,6 @@
// spell-checker:ignore (format) MMDDhhmm
// spell-checker:ignore (ToDO) DATEFILE
extern crate chrono;
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -9,17 +9,11 @@
// spell-checker:ignore (ToDO) mountinfo mtab BLOCKSIZE getmntinfo fobj mptr noatime Iused overmounted
// spell-checker:ignore (libc/fs) asyncreads asyncwrites autofs bavail bfree bsize charspare cifs debugfs devfs devpts ffree frsize fsid fstypename fusectl inode inodes iosize kernfs mntbufp mntfromname mntonname mqueue namemax pipefs smbfs statfs statvfs subfs syncreads syncwrites sysfs wcslen
extern crate clap;
extern crate libc;
extern crate number_prefix;
#[macro_use]
extern crate uucore;
use clap::{App, Arg};
#[cfg(windows)]
extern crate winapi;
#[cfg(windows)]
use winapi::um::errhandlingapi::GetLastError;
#[cfg(windows)]

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) clrtoeol dircolors eightbit endcode fnmatch leftcode multihardlink rightcode setenv sgid suid
extern crate glob;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) BLOCKSIZE inode inodes ment strs
extern crate time;
#[macro_use]
extern crate uucore;

View file

@ -9,9 +9,6 @@
// spell-checker:ignore (ToDO) ctype cwidth iflag nbytes nspaces nums tspaces uflag
extern crate getopts;
extern crate unicode_width;
#[macro_use]
extern crate uucore;

View file

@ -5,7 +5,6 @@
//* For the full copyright and license information, please view the LICENSE
//* file that was distributed with this source code.
extern crate onig;
#[macro_use]
extern crate uucore;

View file

@ -5,8 +5,6 @@
// * For the full copyright and license information, please view the LICENSE file
// * that was distributed with this source code.
extern crate rand;
use smallvec::SmallVec;
use std::cell::RefCell;
use std::fmt;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) PSKIP linebreak ostream parasplit tabwidth xanti xprefix
extern crate unicode_width;
#[macro_use]
extern crate uucore;

View file

@ -12,7 +12,6 @@
extern crate uucore;
use uucore::entries::{get_groups, gid2grp, Locate, Passwd};
extern crate clap;
use clap::{App, Arg};
static VERSION: &str = env!("CARGO_PKG_VERSION");

View file

@ -11,14 +11,6 @@
#[macro_use]
extern crate clap;
extern crate blake2_rfc;
extern crate hex;
extern crate md5;
extern crate regex;
extern crate regex_syntax;
extern crate sha1;
extern crate sha2;
extern crate sha3;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) gethostid
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -7,12 +7,6 @@
// spell-checker:ignore (ToDO) MAKEWORD addrs hashset
extern crate clap;
extern crate hostname;
extern crate libc;
#[cfg(windows)]
extern crate winapi;
#[macro_use]
extern crate uucore;

View file

@ -15,8 +15,6 @@
#![allow(non_camel_case_types)]
#![allow(dead_code)]
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -7,9 +7,6 @@
// spell-checker:ignore (ToDO) rwxr sourcepath targetpath
extern crate clap;
extern crate libc;
mod mode;
#[macro_use]

View file

@ -1,5 +1,3 @@
extern crate libc;
use std::fs;
use std::path::Path;
#[cfg(not(windows))]

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) autoformat FILENUM whitespaces pairable unpairable nocheck
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) signalname pids
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -9,8 +9,6 @@
// spell-checker:ignore (ToDO) getlogin userlogin
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -7,15 +7,6 @@
// spell-checker:ignore (ToDO) cpio svgz webm somegroup nlink rmvb xspf
extern crate getopts;
#[cfg(unix)]
extern crate isatty;
extern crate number_prefix;
extern crate term_grid;
extern crate termsize;
extern crate time;
extern crate unicode_width;
#[cfg(unix)]
#[macro_use]
extern crate lazy_static;

View file

@ -5,8 +5,6 @@
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -5,9 +5,6 @@
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
extern crate getopts;
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -7,9 +7,6 @@
// spell-checker:ignore (ToDO) parsemode makedev sysmacros makenod newmode perror IFBLK IFCHR IFIFO
extern crate getopts;
extern crate libc;
mod parsemode;
#[macro_use]

View file

@ -1,6 +1,5 @@
// spell-checker:ignore (ToDO) fperm
extern crate libc;
use libc::{mode_t, S_IRGRP, S_IROTH, S_IRUSR, S_IWGRP, S_IWOTH, S_IWUSR};
use uucore::mode;

View file

@ -8,10 +8,6 @@
// spell-checker:ignore (ToDO) tempfile tempdir SUFF TMPDIR tmpname
extern crate getopts;
extern crate rand;
extern crate tempfile;
#[macro_use]
extern crate uucore;

View file

@ -2,7 +2,6 @@
// Mainly taken from crate `tempdir`
extern crate rand;
use rand::distributions::Alphanumeric;
use rand::{thread_rng, Rng};

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) lflag ICANON tcgetattr tcsetattr TCSADRAIN
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -8,9 +8,6 @@
// spell-checker:ignore (ToDO) sourcepath targetpath
extern crate clap;
extern crate fs_extra;
#[macro_use]
extern crate uucore;

View file

@ -7,9 +7,6 @@
// spell-checker:ignore (ToDO) getpriority execvp setpriority nstr PRIO cstrs ENOENT
extern crate getopts;
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -1,8 +1,5 @@
// spell-checker:ignore (ToDO) conv
extern crate getopts;
extern crate regex;
// parse_style parses a style string into a NumberingStyle.
fn parse_style(chars: &[char]) -> Result<crate::NumberingStyle, String> {
if chars.len() == 1 && chars[0] == 'a' {

View file

@ -8,12 +8,6 @@
// spell-checker:ignore (ToDO) corasick memchr
extern crate aho_corasick;
extern crate getopts;
extern crate memchr;
extern crate regex;
extern crate regex_syntax;
#[macro_use]
extern crate uucore;

View file

@ -7,9 +7,6 @@
// spell-checker:ignore (ToDO) execvp SIGHUP cproc vprocmgr cstrs homeout
extern crate getopts;
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -7,12 +7,6 @@
// spell-checker:ignore (ToDO) NPROCESSORS nprocs numstr threadstr sysconf
extern crate clap;
extern crate num_cpus;
#[cfg(unix)]
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -5,8 +5,6 @@
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
extern crate getopts;
use getopts::{Matches, Options};
use std::fmt;
use std::io::BufRead;

View file

@ -7,10 +7,6 @@
// spell-checker:ignore (ToDO) formatteriteminfo inputdecoder inputoffset mockstream nrofbytes partialreader odfunc multifile exitcode
extern crate byteorder;
extern crate getopts;
extern crate half;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) delim
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -9,9 +9,6 @@
// spell-checker:ignore (ToDO) lstat
extern crate getopts;
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
/* last synced with: printenv (GNU coreutils) 8.13 */
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -3,9 +3,6 @@
// spell-checker:ignore (change!) each's
// spell-checker:ignore (ToDO) LONGHELP FORMATSTRING templating parameterizing formatstr
extern crate itertools;
extern crate uucore;
mod cli;
mod memo;
mod tokenize;

View file

@ -7,12 +7,6 @@
// spell-checker:ignore (ToDOs) corasick memchr Roff trunc oset iset
extern crate aho_corasick;
extern crate getopts;
extern crate memchr;
extern crate regex;
extern crate regex_syntax;
#[macro_use]
extern crate uucore;

View file

@ -5,8 +5,6 @@
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) errno
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) retcode
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) subpath absto absfrom absbase
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -7,10 +7,6 @@
// spell-checker:ignore (ToDO) bitor ulong
extern crate clap;
extern crate remove_dir_all;
extern crate walkdir;
#[macro_use]
extern crate uucore;

View file

@ -5,8 +5,6 @@
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -3,8 +3,6 @@
// spell-checker:ignore (ToDO) istr chiter argptr ilen
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -8,9 +8,6 @@
// spell-checker:ignore (ToDO) NAMESET FILESIZE fstab coeff journaling writeback REiser journaled
extern crate getopts;
extern crate rand;
use rand::{Rng, ThreadRng};
use std::cell::{Cell, RefCell};
use std::fs;

View file

@ -7,9 +7,6 @@
// spell-checker:ignore (ToDO) cmdline evec seps rvec fdata
extern crate getopts;
extern crate rand;
#[macro_use]
extern crate uucore;

View file

@ -5,8 +5,6 @@
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -7,11 +7,6 @@
#![allow(dead_code)]
// spell-checker:ignore (ToDO) outfile nondictionary
extern crate clap;
extern crate semver;
extern crate itertools;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) PREFIXaa
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) mtab fsext showfs otype fmtstr prec ftype blocksize nlink rdev fnodes fsid namelen blksize inodes fstype iosize statfs gnulib NBLOCKSIZE
extern crate clap;
#[macro_use]
mod fsext;
pub use crate::fsext::*;

View file

@ -1,7 +1,5 @@
// spell-checker:ignore (ToDO) libstdbuf
extern crate cpp_build;
use cpp_build::Config;
fn main() {

View file

@ -2,7 +2,6 @@
#[macro_use]
extern crate cpp;
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -7,9 +7,6 @@
// spell-checker:ignore (ToDO) tempdir dyld dylib dragonflybsd optgrps libstdbuf
extern crate getopts;
extern crate tempfile;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) sysv
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -7,7 +7,6 @@
/* Last synced with: sync (GNU coreutils) 8.13 */
extern crate clap;
extern crate libc;
#[macro_use]

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) sbytes slen
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -1,7 +1,5 @@
// spell-checker:ignore (ToDO) ENOSYS EPERM
extern crate syscall;
use self::syscall::{Error, ENOSYS, EPERM};
pub type Pid = usize;

View file

@ -9,8 +9,6 @@
// spell-checker:ignore (ToDO) errno EPERM ENOSYS
extern crate libc;
use std::io::Error;
pub type Pid = libc::pid_t;

View file

@ -9,9 +9,6 @@
// spell-checker:ignore (ToDO) seekable seek'd tail'ing ringbuffer ringbuf
extern crate getopts;
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -5,10 +5,6 @@
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
extern crate getopts;
extern crate uucore;
use std::fs::OpenOptions;
use std::io::{copy, sink, stdin, stdout, Error, ErrorKind, Read, Result, Write};
use std::path::{Path, PathBuf};

View file

@ -7,10 +7,6 @@
// spell-checker:ignore (ToDO) retval paren prec subprec cond
extern crate libc;
#[cfg(target_os = "redox")]
extern crate syscall;
use std::collections::HashMap;
use std::str::from_utf8;

View file

@ -7,10 +7,6 @@
// spell-checker:ignore (ToDO) tstr sigstr cmdname setpgid
extern crate getopts;
extern crate libc;
extern crate time;
#[macro_use]
extern crate uucore;

View file

@ -8,9 +8,7 @@
// spell-checker:ignore (ToDO) filetime strptime utcoff strs datetime MMDDhhmm
extern crate clap;
pub extern crate filetime;
extern crate time;
#[macro_use]
extern crate uucore;

View file

@ -10,10 +10,6 @@
// spell-checker:ignore (ToDO) allocs bset dflag cflag sflag tflag
extern crate bit_set;
extern crate fnv;
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -7,8 +7,6 @@
// spell-checker:ignore (ToDO) RFILE refsize rfilename fsize tsize
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -6,8 +6,6 @@
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
extern crate getopts;
#[macro_use]
extern crate uucore;

View file

@ -9,9 +9,6 @@
// spell-checker:ignore (ToDO) ttyname filedesc
extern crate getopts;
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -10,8 +10,6 @@
// spell-checker:ignore (ToDO) nodename kernelname kernelrelease kernelversion sysname hwplatform mnrsv
extern crate clap;
extern crate platform_info;
#[macro_use]
extern crate uucore;

View file

@ -9,9 +9,6 @@
// spell-checker:ignore (ToDO) nums aflag uflag scol prevtab amode ctype cwidth nbytes lastcol pctype
extern crate getopts;
extern crate unicode_width;
#[macro_use]
extern crate uucore;

View file

@ -5,8 +5,6 @@
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -9,9 +9,6 @@
// spell-checker:ignore (ToDO) lstat IFLNK IFMT IFREG
extern crate getopts;
extern crate libc;
#[macro_use]
extern crate uucore;

View file

@ -10,10 +10,6 @@
// spell-checker:ignore (ToDO) getloadavg upsecs updays nusers loadavg boottime uphours upmins
extern crate chrono;
extern crate clap;
extern crate time;
use chrono::{Local, TimeZone, Utc};
use clap::{App, Arg};

View file

@ -10,7 +10,6 @@
// Allow dead code here in order to keep all fields, constants here, for consistency.
#![allow(dead_code)]
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -7,7 +7,6 @@
// spell-checker:ignore (ToDO) fpath
extern crate clap;
#[macro_use]
extern crate uucore;

View file

@ -9,8 +9,6 @@
// spell-checker:ignore (ToDO) advapi lmcons winnt getusername WCHAR UNLEN
extern crate advapi32;
extern crate uucore;
extern crate winapi;
use self::winapi::shared::lmcons;

View file

@ -6,11 +6,6 @@
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
#[cfg(windows)]
extern crate dunce;
#[cfg(target_os = "redox")]
extern crate termion;
#[cfg(unix)]
use libc::{
mode_t, S_IRGRP, S_IROTH, S_IRUSR, S_ISGID, S_ISUID, S_ISVTX, S_IWGRP, S_IWOTH, S_IWUSR,

View file

@ -3,10 +3,6 @@
// Copyright (C) ~ Alex Lyon <arcterus@mail.com>
// Copyright (C) ~ Roy Ivy III <rivy.dev@gmail.com>; MIT license
//## external crates
extern crate wild;
// * feature-gated external crates
#[cfg(feature = "failure")]
extern crate failure;

View file

@ -1,5 +1,3 @@
extern crate getopts;
pub struct HelpText<'a> {
pub name: &'a str,
pub version: &'a str,