Skip to content

Commit

Permalink
zerocopy: NoCell -> Immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Apr 29, 2024
1 parent 82a0e82 commit c61c62a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rand_core/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use crate::RngCore;
use core::cmp::min;
use zerocopy::{IntoBytes, NoCell};
use zerocopy::{IntoBytes, Immutable};

/// Implement `next_u64` via `next_u32`, little-endian order.
pub fn next_u64_via_u32<R: RngCore + ?Sized>(rng: &mut R) -> u64 {
Expand Down Expand Up @@ -53,7 +53,7 @@ pub fn fill_bytes_via_next<R: RngCore + ?Sized>(rng: &mut R, dest: &mut [u8]) {
}
}

trait Observable: IntoBytes + NoCell + Copy {
trait Observable: IntoBytes + Immutable + Copy {
fn to_le(self) -> Self;
}
impl Observable for u32 {
Expand Down

0 comments on commit c61c62a

Please sign in to comment.