From 88fce455e3142d0898daf5bdc9a59661c62de816 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Mon, 25 Nov 2024 13:49:32 +0000 Subject: [PATCH] Don't use 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 806e1ee1e6..9119aa3daa 100644 --- a/rand_core/src/os.rs +++ b/rand_core/src/os.rs @@ -60,7 +60,7 @@ impl core::fmt::Display for OsError { // NOTE: this should not require std; see getrandom#545 #[cfg(feature = "std")] -impl core::error::Error for OsError { +impl std::error::Error for OsError { #[inline] fn source(&self) -> Option<&(dyn core::error::Error + 'static)> { core::error::Error::source(&self.0)