summaryrefslogtreecommitdiff
path: root/tests/expectations/tests/struct_with_derive_debug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expectations/tests/struct_with_derive_debug.rs')
-rw-r--r--tests/expectations/tests/struct_with_derive_debug.rs21
1 files changed, 15 insertions, 6 deletions
diff --git a/tests/expectations/tests/struct_with_derive_debug.rs b/tests/expectations/tests/struct_with_derive_debug.rs
index 205e565d..73c7e4ff 100644
--- a/tests/expectations/tests/struct_with_derive_debug.rs
+++ b/tests/expectations/tests/struct_with_derive_debug.rs
@@ -1,8 +1,11 @@
/* automatically generated by rust-bindgen */
-
-#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]
-
+#![allow(
+ dead_code,
+ non_snake_case,
+ non_camel_case_types,
+ non_upper_case_globals
+)]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)]
@@ -22,7 +25,9 @@ fn bindgen_test_layout_LittleArray() {
concat!("Alignment of ", stringify!(LittleArray))
);
assert_eq!(
- unsafe { &(*(::std::ptr::null::<LittleArray>())).a as *const _ as usize },
+ unsafe {
+ &(*(::std::ptr::null::<LittleArray>())).a as *const _ as usize
+ },
0usize,
concat!(
"Offset of field: ",
@@ -83,7 +88,9 @@ fn bindgen_test_layout_WithLittleArray() {
concat!("Alignment of ", stringify!(WithLittleArray))
);
assert_eq!(
- unsafe { &(*(::std::ptr::null::<WithLittleArray>())).a as *const _ as usize },
+ unsafe {
+ &(*(::std::ptr::null::<WithLittleArray>())).a as *const _ as usize
+ },
0usize,
concat!(
"Offset of field: ",
@@ -111,7 +118,9 @@ fn bindgen_test_layout_WithBigArray() {
concat!("Alignment of ", stringify!(WithBigArray))
);
assert_eq!(
- unsafe { &(*(::std::ptr::null::<WithBigArray>())).a as *const _ as usize },
+ unsafe {
+ &(*(::std::ptr::null::<WithBigArray>())).a as *const _ as usize
+ },
0usize,
concat!(
"Offset of field: ",