Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove remaining uses of extern crate. #804

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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