Skip to content

Commit

Permalink
Make MachineTypes comparable
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Nov 20, 2023
1 parent a08006a commit f618cfe
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pe-parser"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
license = "MIT"
authors = ["Isaac Marovitz <[email protected]>"]
Expand All @@ -22,7 +22,7 @@ num-traits = { version = "0.2.17", default-features = false }
num-derive = "0.4.1"
bitflags = { version = "2.4.1", default-features = false }
chrono = { version = "0.4.31", default-features = false }
clap = { version = "4.4.7", features = ["cargo"], optional = true }
clap = { version = "4.4.8", features = ["cargo"], optional = true }

[dev-dependencies]
datatest-stable = "0.2.3"
Expand Down
10 changes: 5 additions & 5 deletions fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/coff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl fmt::Display for CoffFileHeader {

/// The Machine field has one of the following values, which specify the CPU type.
/// An image file can be run only on the specified machine or on a system that emulates the specified machine.
#[derive(FromPrimitive, Debug)]
#[derive(FromPrimitive, Debug, PartialEq)]
#[repr(u16)]
pub enum MachineTypes {
/// The content of this field is assumed to be applicable to any machine type
Expand Down

0 comments on commit f618cfe

Please sign in to comment.