Skip to content

Commit a6eadb4

Browse files
committed
Derive Default in expectations
1 parent 400c0bd commit a6eadb4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/expectations/tests/no-partialeq-opaque.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
#[repr(C)]
8-
#[derive(Debug, Copy)]
8+
#[derive(Debug, Default, Copy)]
99
pub struct NoPartialEq {
1010
pub _bindgen_opaque_blob: u32,
1111
}

tests/expectations/tests/no-partialeq-whitelisted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
#[repr(C)]
8-
#[derive(Debug, Copy)]
8+
#[derive(Debug, Default, Copy)]
99
pub struct NoPartialEq {
1010
pub i: ::std::os::raw::c_int,
1111
}

tests/expectations/tests/whitelisted-item-references-no-partialeq.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
#[repr(C)]
8-
#[derive(Debug, Copy)]
8+
#[derive(Debug, Default, Copy)]
99
pub struct NoPartialEq {
1010
pub _address: u8,
1111
}
@@ -28,7 +28,7 @@ impl Clone for NoPartialEq {
2828
}
2929
}
3030
#[repr(C)]
31-
#[derive(Debug, Copy)]
31+
#[derive(Debug, Default, Copy)]
3232
pub struct WhitelistMe {
3333
pub a: NoPartialEq,
3434
}

0 commit comments

Comments
 (0)