We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88fce45 commit fc018bcCopy full SHA for fc018bc
rand_core/src/os.rs
@@ -58,12 +58,12 @@ impl core::fmt::Display for OsError {
58
}
59
60
61
-// NOTE: this should not require std; see getrandom#545
+// NOTE: this can use core::error::Error from rustc 1.81.0
62
#[cfg(feature = "std")]
63
impl std::error::Error for OsError {
64
#[inline]
65
- fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
66
- core::error::Error::source(&self.0)
+ fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
+ std::error::Error::source(&self.0)
67
68
69
0 commit comments