Skip to content

Commit

Permalink
Don't use core::error::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Nov 25, 2024
1 parent 15e40c6 commit 88fce45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rand_core/src/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 88fce45

Please sign in to comment.