Skip to content

Commit 86cc801

Browse files
codebycruzjiegec
authored andcommitted
Replace std::error::Error with core::error::Error
This was stabilized in Rust 1.81 and was pointed out by the comment above the impl.
1 parent 85534a9 commit 86cc801

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

capstone-rs/src/error.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ capstone_error_def!(
7272
=> UnsupportedX86Masm = CS_ERR_X86_MASM;
7373
);
7474

75-
// Required until https://github.com/rust-lang/rust/issues/103765 is resolved
76-
#[cfg(feature = "std")]
77-
impl std::error::Error for Error {}
75+
impl core::error::Error for Error {}
7876

7977
pub type CsResult<T> = result::Result<T, Error>;
8078

0 commit comments

Comments
 (0)