mirror of
https://github.com/openharmony/third_party_rust_ryu.git
synced 2026-07-01 07:14:56 -04:00
Remove use of 'extern crate'
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
#![feature(test)]
|
||||
|
||||
extern crate ryu;
|
||||
extern crate test;
|
||||
|
||||
macro_rules! benches {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
// cargo run --example upstream_benchmark --release
|
||||
|
||||
extern crate rand;
|
||||
extern crate ryu;
|
||||
|
||||
use rand::{Rng, SeedableRng};
|
||||
|
||||
const SAMPLES: usize = 10000;
|
||||
|
||||
@@ -88,9 +88,6 @@
|
||||
allow(cast_lossless, many_single_char_names, unreadable_literal,)
|
||||
)]
|
||||
|
||||
#[cfg(feature = "no-panic")]
|
||||
extern crate no_panic;
|
||||
|
||||
mod buffer;
|
||||
mod common;
|
||||
mod d2s;
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
extern crate core;
|
||||
|
||||
#[path = "../src/common.rs"]
|
||||
mod common;
|
||||
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied.
|
||||
|
||||
extern crate rand;
|
||||
extern crate ryu;
|
||||
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#![cfg(exhaustive)]
|
||||
|
||||
extern crate num_cpus;
|
||||
extern crate ryu;
|
||||
|
||||
use std::str;
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied.
|
||||
|
||||
extern crate rand;
|
||||
extern crate ryu;
|
||||
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user