Skip to content

Commit 568bbdd

Browse files
committed
fix: Implement std::error::Error only when use std feature as pit is not in core
1 parent 8a2eceb commit 568bbdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl core::fmt::Display for PointerError {
3232
}
3333
}
3434

35+
#[cfg(feature = "std")] // Waiting for https://github.com/rust-lang/rust/issues/103765
3536
impl std::error::Error for PointerError {
3637
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
3738
match *self {

0 commit comments

Comments
 (0)