Skip to content

Commit

Permalink
Formatter: default type argument to ()
Browse files Browse the repository at this point in the history
  • Loading branch information
athre0z committed Dec 21, 2023
1 parent c4ea4ae commit d72fbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ impl fmt::Display for OutputBuffer<'_> {
#[repr(C)]
// needed, since we cast a *const ZydisFormatter to a *const Formatter and the
// rust compiler could reorder the fields if this wasn't #[repr(C)].
pub struct Formatter<UserData> {
pub struct Formatter<UserData = ()> {
formatter: ffi::Formatter,

pre_instruction: Option<Box<WrappedGeneralFunc<UserData>>>,
Expand Down

0 comments on commit d72fbc2

Please sign in to comment.