From 865a5517ea3c40e8ad075b2ba6b8d99c3c6686b2 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 11 Dec 2021 20:39:57 -0800 Subject: [PATCH] Remove 2015-style extern crate from test and benches --- benches/bench.rs | 5 ----- tests/test.rs | 2 -- 2 files changed, 7 deletions(-) diff --git a/benches/bench.rs b/benches/bench.rs index 31f5499..277eff2 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -2,7 +2,6 @@ #![allow(non_snake_case)] #![allow(clippy::cast_lossless)] -extern crate itoa; extern crate test; macro_rules! benches { @@ -18,8 +17,6 @@ macro_rules! benches { $(#[$attr])* #[bench] fn $name(b: &mut Bencher) { - use itoa; - let mut buf = Vec::with_capacity(40); b.iter(|| { @@ -36,8 +33,6 @@ macro_rules! benches { $(#[$attr])* #[bench] fn $name(b: &mut Bencher) { - use itoa; - let mut buf = String::with_capacity(40); b.iter(|| { diff --git a/tests/test.rs b/tests/test.rs index a2c7ab0..9b9e852 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -1,8 +1,6 @@ #![allow(non_snake_case)] #![allow(clippy::cast_lossless, clippy::unseparated_literal_suffix)] -extern crate itoa; - macro_rules! test { ( $(