mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
Remove some unnecessary "extern crate" statements
This commit is contained in:
parent
2f6c505ff2
commit
4355fb7f78
5 changed files with 0 additions and 8 deletions
|
@ -7,8 +7,6 @@
|
||||||
|
|
||||||
/* Last synced with: sync (GNU coreutils) 8.13 */
|
/* Last synced with: sync (GNU coreutils) 8.13 */
|
||||||
|
|
||||||
extern crate libc;
|
|
||||||
|
|
||||||
use clap::{crate_version, Arg, ArgAction, Command};
|
use clap::{crate_version, Arg, ArgAction, Command};
|
||||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||||
use nix::errno::Errno;
|
use nix::errno::Errno;
|
||||||
|
@ -34,7 +32,6 @@ static ARG_FILES: &str = "files";
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
mod platform {
|
mod platform {
|
||||||
use super::libc;
|
|
||||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
// spell-checker:ignore DATETIME subsecond (arch) bitrig ; (fs) cifs smbfs
|
// spell-checker:ignore DATETIME subsecond (arch) bitrig ; (fs) cifs smbfs
|
||||||
|
|
||||||
extern crate time;
|
|
||||||
use time::macros::format_description;
|
use time::macros::format_description;
|
||||||
use time::UtcOffset;
|
use time::UtcOffset;
|
||||||
|
|
||||||
|
|
|
@ -227,7 +227,6 @@ impl Utmpx {
|
||||||
let (hostname, display) = host.split_once(':').unwrap_or((&host, ""));
|
let (hostname, display) = host.split_once(':').unwrap_or((&host, ""));
|
||||||
|
|
||||||
if !hostname.is_empty() {
|
if !hostname.is_empty() {
|
||||||
extern crate dns_lookup;
|
|
||||||
use dns_lookup::{getaddrinfo, AddrInfoHints};
|
use dns_lookup::{getaddrinfo, AddrInfoHints};
|
||||||
|
|
||||||
const AI_CANONNAME: i32 = 0x2;
|
const AI_CANONNAME: i32 = 0x2;
|
||||||
|
|
|
@ -200,8 +200,6 @@ impl Display for BackupError {
|
||||||
pub mod arguments {
|
pub mod arguments {
|
||||||
use clap::ArgAction;
|
use clap::ArgAction;
|
||||||
|
|
||||||
extern crate clap;
|
|
||||||
|
|
||||||
pub static OPT_BACKUP: &str = "backupopt_backup";
|
pub static OPT_BACKUP: &str = "backupopt_backup";
|
||||||
pub static OPT_BACKUP_NO_ARG: &str = "backupopt_b";
|
pub static OPT_BACKUP_NO_ARG: &str = "backupopt_b";
|
||||||
pub static OPT_SUFFIX: &str = "backupopt_suffix";
|
pub static OPT_SUFFIX: &str = "backupopt_suffix";
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Copyright (C) ~ Roy Ivy III <rivy.dev@gmail.com>; MIT license
|
// Copyright (C) ~ Roy Ivy III <rivy.dev@gmail.com>; MIT license
|
||||||
// spell-checker:ignore backticks
|
// spell-checker:ignore backticks
|
||||||
|
|
||||||
extern crate proc_macro;
|
|
||||||
use std::{fs::File, io::Read, path::PathBuf};
|
use std::{fs::File, io::Read, path::PathBuf};
|
||||||
|
|
||||||
use proc_macro::{Literal, TokenStream, TokenTree};
|
use proc_macro::{Literal, TokenStream, TokenTree};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue