Skip to content

Commit bc47954

Browse files
committed
Mark DemangleOptions as repr(C) since it's used directly by the C api.
1 parent 03f8166 commit bc47954

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ use std::fmt;
8585

8686
/// Options to control the demangling process.
8787
#[derive(Clone, Copy, Debug, Default)]
88+
#[repr(C)]
8889
pub struct DemangleOptions {
8990
no_params: bool,
9091
no_return_type: bool,

0 commit comments

Comments
 (0)