diff --git a/rand_core/Cargo.toml b/rand_core/Cargo.toml index d74b5cfd565..fce118af618 100644 --- a/rand_core/Cargo.toml +++ b/rand_core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rand_core" -version = "0.2.2" # NB: When modifying, also modify html_root_url in lib.rs +version = "0.2.3" # NB: When modifying, also modify html_root_url in lib.rs authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" diff --git a/rand_core/src/impls.rs b/rand_core/src/impls.rs index 439b46b8098..415eafd80fc 100644 --- a/rand_core/src/impls.rs +++ b/rand_core/src/impls.rs @@ -19,11 +19,10 @@ //! to/from byte sequences, and since its purpose is reproducibility, //! non-reproducible sources (e.g. `OsRng`) need not bother with it. -use core::intrinsics::transmute; use core::ptr::copy_nonoverlapping; use core::slice; use core::cmp::min; -use core::mem::size_of; +use core::mem::{size_of, transmute}; use RngCore; diff --git a/rand_core/src/lib.rs b/rand_core/src/lib.rs index 0d1550ca21a..f02302db04f 100644 --- a/rand_core/src/lib.rs +++ b/rand_core/src/lib.rs @@ -37,7 +37,7 @@ #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png", html_favicon_url = "https://www.rust-lang.org/favicon.ico", - html_root_url = "https://docs.rs/rand_core/0.2.2")] + html_root_url = "https://docs.rs/rand_core/0.2.3")] #![deny(missing_docs)] #![deny(missing_debug_implementations)]