From a292a42518d801d65a58180aab10ba1ba021ccc5 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 8 Aug 2024 07:34:51 +0700 Subject: [PATCH] Remove remaining uses of `extern crate`. --- bencher_compat/benches/bencher_example.rs | 7 ++----- bencher_compat/src/lib.rs | 2 -- plot/src/lib.rs | 2 -- src/lib.rs | 6 ------ 4 files changed, 2 insertions(+), 15 deletions(-) diff --git a/bencher_compat/benches/bencher_example.rs b/bencher_compat/benches/bencher_example.rs index 5339836b..1382a433 100644 --- a/bencher_compat/benches/bencher_example.rs +++ b/bencher_compat/benches/bencher_example.rs @@ -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(|| { @@ -19,4 +16,4 @@ fn b(bench: &mut Bencher) { } benchmark_group!(benches, a, b); -benchmark_main!(benches); \ No newline at end of file +benchmark_main!(benches); diff --git a/bencher_compat/src/lib.rs b/bencher_compat/src/lib.rs index c50ed7ca..3b96aced 100644 --- a/bencher_compat/src/lib.rs +++ b/bencher_compat/src/lib.rs @@ -1,5 +1,3 @@ -extern crate criterion; - pub use std::hint::black_box; pub use criterion::Criterion; use criterion::measurement::WallTime; diff --git a/plot/src/lib.rs b/plot/src/lib.rs index a948defb..3473cfed 100644 --- a/plot/src/lib.rs +++ b/plot/src/lib.rs @@ -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; diff --git a/src/lib.rs b/src/lib.rs index 547d9904..0566acc3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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};