Skip to content
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
1 change: 0 additions & 1 deletion rand_core/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

use crate::impls::{fill_via_u32_chunks, fill_via_u64_chunks};
use crate::{Error, CryptoRng, RngCore, SeedableRng};
use core::convert::AsRef;
use core::fmt;
#[cfg(feature = "serde1")]
use serde::{Deserialize, Serialize};
Expand Down
2 changes: 0 additions & 2 deletions rand_core/src/le.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
//! Little-Endian order has been chosen for internal usage; this makes some
//! useful functions available.

use core::convert::TryInto;

/// Reads unsigned 32 bit integers from `src` into `dst`.
#[inline]
pub fn read_u32_into(src: &[u8], dst: &mut [u32]) {
Expand Down
3 changes: 0 additions & 3 deletions rand_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
#![cfg_attr(doc_cfg, feature(doc_cfg))]
#![no_std]

use core::convert::AsMut;
use core::default::Default;

#[cfg(feature = "alloc")] extern crate alloc;
#[cfg(feature = "std")] extern crate std;
#[cfg(feature = "alloc")] use alloc::boxed::Box;
Expand Down
1 change: 0 additions & 1 deletion src/distributions/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ float_impls! { f64x8, u64x8, f64, u64, 52, 1023 }
#[cfg(test)]
mod tests {
use super::*;
use crate::distributions::utils::FloatAsSIMD;
use crate::rngs::mock::StepRng;

const EPSILON32: f32 = ::core::f32::EPSILON;
Expand Down
1 change: 0 additions & 1 deletion src/distributions/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ where Standard: Distribution<T>
mod tests {
use super::*;
use crate::RngCore;
#[cfg(feature = "alloc")] use alloc::string::String;

#[test]
fn test_misc() {
Expand Down
1 change: 0 additions & 1 deletion src/distributions/uniform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
use core::fmt;
use core::time::Duration;
use core::ops::{Range, RangeInclusive};
use core::convert::TryFrom;

use crate::distributions::float::IntoFloat;
use crate::distributions::utils::{BoolAsSIMD, FloatAsSIMD, FloatSIMDUtils, IntAsSIMD, WideningMultiply};
Expand Down
1 change: 0 additions & 1 deletion src/distributions/weighted_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use crate::distributions::uniform::{SampleBorrow, SampleUniform, UniformSampler};
use crate::distributions::Distribution;
use crate::Rng;
use core::cmp::PartialOrd;
use core::fmt;

// Note that this whole module is only imported if feature="alloc" is enabled.
Expand Down
2 changes: 0 additions & 2 deletions src/seq/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,6 @@ fn gen_index<R: Rng + ?Sized>(rng: &mut R, ubound: usize) -> usize {
#[cfg(test)]
mod test {
use super::*;
#[cfg(feature = "alloc")]
use crate::Rng;
#[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::vec::Vec;

Expand Down