From a372676ced104e9cff19f1279ec16f6cd8b45685 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:31:46 +0100 Subject: [PATCH] Allow new warning on recent nightly versions --- rand_core/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rand_core/src/lib.rs b/rand_core/src/lib.rs index a5a7fb150c..292c57ffb8 100644 --- a/rand_core/src/lib.rs +++ b/rand_core/src/lib.rs @@ -245,6 +245,7 @@ pub trait SeedableRng: Sized { /// /// const N: usize = 64; /// pub struct MyRngSeed(pub [u8; N]); + /// # #[allow(dead_code)] /// pub struct MyRng(MyRngSeed); /// /// impl Default for MyRngSeed {