From db2b3f79f8032e143c0d8e1053ed0ea01151c4d7 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Mon, 25 Nov 2024 13:59:25 +0000 Subject: [PATCH] Fix comment and further uses of core::error::Error --- rand_core/src/os.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand_core/src/os.rs b/rand_core/src/os.rs index 9119aa3daa..253919c404 100644 --- a/rand_core/src/os.rs +++ b/rand_core/src/os.rs @@ -58,7 +58,7 @@ impl core::fmt::Display for OsError { } } -// NOTE: this should not require std; see getrandom#545 +// NOTE: this can use core::error::Error from rustc 1.81.0 #[cfg(feature = "std")] impl std::error::Error for OsError { #[inline]