Skip to content

Commit

Permalink
impl Copy for pe::Header
Browse files Browse the repository at this point in the history
  • Loading branch information
kkent030315 committed Oct 26, 2024
1 parent ff8e282 commit 72a449b
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 @@ -382,7 +382,7 @@ impl DosHeader {
}
}

#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, PartialEq, Copy, Clone)]
/// The DOS stub program which should be executed in DOS mode. It prints the message "This program cannot be run in DOS mode" and exits.
///
/// ## Position in a modern PE file
Expand Down Expand Up @@ -852,7 +852,7 @@ impl CoffHeader {
///
/// The PE header is located at the very beginning of the file and
/// is followed by the section table and sections.
#[derive(Debug, PartialEq, Clone, Default)]
#[derive(Debug, PartialEq, Copy, Clone, Default)]
pub struct Header<'a> {
pub dos_header: DosHeader,
/// DOS program for legacy loaders
Expand Down

0 comments on commit 72a449b

Please sign in to comment.