From 4807e260aac1a3ca6d134bc88de9fe1221eb18aa Mon Sep 17 00:00:00 2001 From: Dan Johnson Date: Fri, 22 Nov 2024 03:10:37 -0800 Subject: [PATCH] rand_chacha: remove conditional compilation around using core (#1534) --- rand_chacha/src/chacha.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rand_chacha/src/chacha.rs b/rand_chacha/src/chacha.rs index 831858090d..91d3cd628d 100644 --- a/rand_chacha/src/chacha.rs +++ b/rand_chacha/src/chacha.rs @@ -8,13 +8,8 @@ //! The ChaCha random number generator. -#[cfg(not(feature = "std"))] -use core; -#[cfg(feature = "std")] -use std as core; - -use self::core::fmt; use crate::guts::ChaCha; +use core::fmt; use rand_core::block::{BlockRng, BlockRngCore, CryptoBlockRng}; use rand_core::{CryptoRng, RngCore, SeedableRng};