Skip to content

Commit

Permalink
lib: Hint and Object are now non-exhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
m4b committed Jan 1, 2024
1 parent 6d664c0 commit 67469bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
//! Object::Archive(archive) => {
//! println!("archive: {:#?}", &archive);
//! },
//! Object::Unknown(magic) => { println!("unknown magic: {:#x}", magic) }
//! Object::Unknown(magic) => { println!("unknown magic: {:#x}", magic) },
//! _ => { }
//! }
//! }
//! }
Expand Down Expand Up @@ -221,6 +222,7 @@ pub struct HintData {
}

#[derive(Debug)]
#[non_exhaustive]
/// A hint at the underlying binary format for 16 bytes of arbitrary data
pub enum Hint {
Elf(HintData),
Expand Down Expand Up @@ -281,6 +283,7 @@ if_everything! {

#[derive(Debug)]
#[allow(clippy::large_enum_variant)]
#[non_exhaustive]
/// A parseable object that goblin understands
pub enum Object<'a> {
/// An ELF32/ELF64!
Expand Down

0 comments on commit 67469bf

Please sign in to comment.