From 26308946587bd75728adc8161d3f4c60dcfb30f9 Mon Sep 17 00:00:00 2001 From: Greg Guthe <226605+g-k@users.noreply.github.com> Date: Wed, 19 Jan 2022 21:41:05 -0500 Subject: [PATCH] shuf: remove ReadRng deprecation notices --- src/uu/shuf/src/rand_read_adapter.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/uu/shuf/src/rand_read_adapter.rs b/src/uu/shuf/src/rand_read_adapter.rs index 25a9ca7fc..1b5860056 100644 --- a/src/uu/shuf/src/rand_read_adapter.rs +++ b/src/uu/shuf/src/rand_read_adapter.rs @@ -9,14 +9,11 @@ //! A wrapper around any Read to treat it as an RNG. -#![allow(deprecated)] - use std::fmt; use std::io::Read; use rand_core::{impls, Error, RngCore}; - /// An RNG that reads random bytes straight from any type supporting /// [`std::io::Read`], for example files. /// @@ -35,7 +32,6 @@ use rand_core::{impls, Error, RngCore}; /// [`OsRng`]: crate::rngs::OsRng /// [`try_fill_bytes`]: RngCore::try_fill_bytes #[derive(Debug)] -#[deprecated(since="0.8.4", note="removal due to lack of usage")] pub struct ReadRng { reader: R, } @@ -78,7 +74,6 @@ impl RngCore for ReadRng { /// `ReadRng` error type #[derive(Debug)] -#[deprecated(since="0.8.4")] pub struct ReadError(std::io::Error); impl fmt::Display for ReadError { @@ -93,7 +88,6 @@ impl std::error::Error for ReadError { } } - #[cfg(test)] mod test { use std::println;