mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
remove extern crate
(#30311)
* remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
a0cff6a085
commit
711dbbd4af
274 changed files with 415 additions and 429 deletions
|
@ -2,6 +2,8 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
use log::trace;
|
||||
/// A random number generator which shares one instance of an `OsRng`.
|
||||
///
|
||||
/// A problem with `OsRng`, which is inherited by `StdRng` and so
|
||||
|
@ -11,12 +13,6 @@
|
|||
///
|
||||
/// This crate fixes that, by only using one `OsRng`, which is just
|
||||
/// used to seed and re-seed an `ServoRng`.
|
||||
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
use rand::distributions::{Distribution, Standard};
|
||||
use rand::rngs::adapter::ReseedingRng;
|
||||
use rand::rngs::OsRng;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue