Skip to content

Commit

Permalink
Use core::mem instead of std::mem
Browse files Browse the repository at this point in the history
  • Loading branch information
kkent030315 committed Oct 26, 2024
1 parent c5e7e83 commit 2cf7861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pe/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -915,11 +915,11 @@ impl<'a> ctx::TryIntoCtx<scroll::Endian> for Header<'a> {
/// The DANS marker is a XOR-decoded version of the string "DanS" and is used to identify the Rich header.
pub const DANS_MARKER: u32 = 0x536E6144;
/// Size of [DANS_MARKER] in bytes
pub const DANS_MARKER_SIZE: usize = std::mem::size_of::<u32>();
pub const DANS_MARKER_SIZE: usize = core::mem::size_of::<u32>();
/// The Rich marker is a XOR-decoded version of the string "Rich" and is used to identify the Rich header.
pub const RICH_MARKER: u32 = 0x68636952;
/// Size of [RICH_MARKER] in bytes
pub const RICH_MARKER_SIZE: usize = std::mem::size_of::<u32>();
pub const RICH_MARKER_SIZE: usize = core::mem::size_of::<u32>();

/// The Rich header is a undocumented header that is used to store information about the build environment.
///
Expand Down

0 comments on commit 2cf7861

Please sign in to comment.