Remove 2015-style extern crate from test and benches

This commit is contained in:
David Tolnay 2021-12-11 20:39:57 -08:00
parent e970e7117f
commit 865a5517ea
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 0 additions and 7 deletions

View File

@ -2,7 +2,6 @@
#![allow(non_snake_case)] #![allow(non_snake_case)]
#![allow(clippy::cast_lossless)] #![allow(clippy::cast_lossless)]
extern crate itoa;
extern crate test; extern crate test;
macro_rules! benches { macro_rules! benches {
@ -18,8 +17,6 @@ macro_rules! benches {
$(#[$attr])* $(#[$attr])*
#[bench] #[bench]
fn $name(b: &mut Bencher) { fn $name(b: &mut Bencher) {
use itoa;
let mut buf = Vec::with_capacity(40); let mut buf = Vec::with_capacity(40);
b.iter(|| { b.iter(|| {
@ -36,8 +33,6 @@ macro_rules! benches {
$(#[$attr])* $(#[$attr])*
#[bench] #[bench]
fn $name(b: &mut Bencher) { fn $name(b: &mut Bencher) {
use itoa;
let mut buf = String::with_capacity(40); let mut buf = String::with_capacity(40);
b.iter(|| { b.iter(|| {

View File

@ -1,8 +1,6 @@
#![allow(non_snake_case)] #![allow(non_snake_case)]
#![allow(clippy::cast_lossless, clippy::unseparated_literal_suffix)] #![allow(clippy::cast_lossless, clippy::unseparated_literal_suffix)]
extern crate itoa;
macro_rules! test { macro_rules! test {
( (
$( $(