From 04704b1c62c5235138cad8486d0dcc445fa3d80c Mon Sep 17 00:00:00 2001 From: Dan Johnson Date: Thu, 21 Nov 2024 17:22:35 -0800 Subject: [PATCH] remove conditional compilation around using core --- 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};