Skip to content

Commit

Permalink
Derive Default in expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzab committed Sep 19, 2017
1 parent 400c0bd commit a6eadb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/expectations/tests/no-partialeq-opaque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


#[repr(C)]
#[derive(Debug, Copy)]
#[derive(Debug, Default, Copy)]
pub struct NoPartialEq {
pub _bindgen_opaque_blob: u32,
}
Expand Down
2 changes: 1 addition & 1 deletion tests/expectations/tests/no-partialeq-whitelisted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


#[repr(C)]
#[derive(Debug, Copy)]
#[derive(Debug, Default, Copy)]
pub struct NoPartialEq {
pub i: ::std::os::raw::c_int,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


#[repr(C)]
#[derive(Debug, Copy)]
#[derive(Debug, Default, Copy)]
pub struct NoPartialEq {
pub _address: u8,
}
Expand All @@ -28,7 +28,7 @@ impl Clone for NoPartialEq {
}
}
#[repr(C)]
#[derive(Debug, Copy)]
#[derive(Debug, Default, Copy)]
pub struct WhitelistMe {
pub a: NoPartialEq,
}
Expand Down

0 comments on commit a6eadb4

Please sign in to comment.