Skip to content

Commit

Permalink
Remove remaining uses of extern crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Aug 8, 2024
1 parent a5f00c4 commit a292a42
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
7 changes: 2 additions & 5 deletions bencher_compat/benches/bencher_example.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#[macro_use]
extern crate criterion_bencher_compat;

use criterion_bencher_compat::Bencher;
use criterion_bencher_compat::{benchmark_group, benchmark_main, Bencher};

fn a(bench: &mut Bencher) {
bench.iter(|| {
Expand All @@ -19,4 +16,4 @@ fn b(bench: &mut Bencher) {
}

benchmark_group!(benches, a, b);
benchmark_main!(benches);
benchmark_main!(benches);
2 changes: 0 additions & 2 deletions bencher_compat/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate criterion;

pub use std::hint::black_box;
pub use criterion::Criterion;
use criterion::measurement::WallTime;
Expand Down
2 changes: 0 additions & 2 deletions plot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@
#![allow(clippy::doc_markdown)]
#![allow(clippy::many_single_char_names)]

extern crate cast;

use std::borrow::Cow;
use std::fmt;
use std::fs::File;
Expand Down
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
#[cfg(all(feature = "rayon", target_arch = "wasm32"))]
compile_error!("Rayon cannot be used when targeting wasi32. Try disabling default features.");

#[cfg(test)]
extern crate approx;

#[cfg(test)]
extern crate quickcheck;

use regex::Regex;
use serde::{Deserialize, Serialize};

Expand Down

0 comments on commit a292a42

Please sign in to comment.