Skip to content

Commit

Permalink
chore: remove extern crates
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jan 8, 2022
1 parent 8d40916 commit 92ae3e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/file/imp/mod.rs
@@ -1,4 +1,4 @@
cfg_if! {
cfg_if::cfg_if! {
if #[cfg(any(unix, target_os = "redox", target_os = "wasi"))] {
mod unix;
pub use self::unix::*;
Expand Down
2 changes: 1 addition & 1 deletion src/file/imp/unix.rs
Expand Up @@ -2,7 +2,7 @@ use std::env;
use std::ffi::{CString, OsStr};
use std::fs::{self, File, OpenOptions};
use std::io;
cfg_if! {
cfg_if::cfg_if! {
if #[cfg(not(target_os = "wasi"))] {
use std::os::unix::ffi::OsStrExt;
use std::os::unix::fs::{MetadataExt, OpenOptionsExt};
Expand Down
9 changes: 1 addition & 8 deletions src/lib.rs
Expand Up @@ -127,15 +127,8 @@
#![allow(clippy::redundant_field_names)]
#![cfg_attr(feature = "nightly", feature(wasi_ext))]

#[macro_use]
extern crate cfg_if;

#[cfg(doctest)]
#[macro_use]
extern crate doc_comment;

#[cfg(doctest)]
doctest!("../README.md");
doc_comment::doctest!("../README.md");

const NUM_RETRIES: u32 = 1 << 31;
const NUM_RAND_CHARS: usize = 6;
Expand Down

0 comments on commit 92ae3e9

Please sign in to comment.