Skip to content

Commit fc018bc

Browse files
committed
Fix comment and further uses of core::error::Error
1 parent 88fce45 commit fc018bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rand_core/src/os.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ impl core::fmt::Display for OsError {
5858
}
5959
}
6060

61-
// NOTE: this should not require std; see getrandom#545
61+
// NOTE: this can use core::error::Error from rustc 1.81.0
6262
#[cfg(feature = "std")]
6363
impl std::error::Error for OsError {
6464
#[inline]
65-
fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
66-
core::error::Error::source(&self.0)
65+
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
66+
std::error::Error::source(&self.0)
6767
}
6868
}
6969

0 commit comments

Comments
 (0)