Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
codebycruz committed Sep 9, 2025
commit d9b4e763718a8707c204ac8132deb5938f9cb3bc
4 changes: 1 addition & 3 deletions capstone-rs/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ capstone_error_def!(
=> UnsupportedX86Masm = CS_ERR_X86_MASM;
);

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

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

Expand Down
Loading