Skip to content

Commit 9b76f21

Browse files
committed
Use zerocopy 0.7.33, not 0.8.0-alpha
1 parent 4f8257a commit 9b76f21

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ rand_core = { path = "rand_core", version = "=0.9.0-alpha.1", default-features =
7070
log = { version = "0.4.4", optional = true }
7171
serde = { version = "1.0.103", features = ["derive"], optional = true }
7272
rand_chacha = { path = "rand_chacha", version = "=0.9.0-alpha.1", default-features = false, optional = true }
73-
zerocopy = { version = "=0.8.0-alpha.6", default-features = false, features = ["simd"] }
73+
zerocopy = { version = "0.7.33", default-features = false, features = ["simd"] }
7474

7575
[dev-dependencies]
7676
rand_pcg = { path = "rand_pcg", version = "=0.9.0-alpha.1" }

rand_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ serde1 = ["serde"] # enables serde for BlockRng wrapper
3232
[dependencies]
3333
serde = { version = "1", features = ["derive"], optional = true }
3434
getrandom = { version = "0.2", optional = true }
35-
zerocopy = { version = "=0.8.0-alpha.6", default-features = false }
35+
zerocopy = { version = "0.7.33", default-features = false }

rand_core/src/impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
use crate::RngCore;
2121
use core::cmp::min;
22-
use zerocopy::{IntoBytes, NoCell};
22+
use zerocopy::AsBytes;
2323

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

56-
trait Observable: IntoBytes + NoCell + Copy {
56+
trait Observable: AsBytes + Copy {
5757
fn to_le(self) -> Self;
5858
}
5959
impl Observable for u32 {

0 commit comments

Comments
 (0)