summaryrefslogtreecommitdiff
path: root/tests/expectations/tests/struct_with_large_array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expectations/tests/struct_with_large_array.rs')
-rw-r--r--tests/expectations/tests/struct_with_large_array.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/expectations/tests/struct_with_large_array.rs b/tests/expectations/tests/struct_with_large_array.rs
index 43388eda..5321aa10 100644
--- a/tests/expectations/tests/struct_with_large_array.rs
+++ b/tests/expectations/tests/struct_with_large_array.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(Copy, Clone)]
@@ -22,7 +25,9 @@ fn bindgen_test_layout_S() {
concat!("Alignment of ", stringify!(S))
);
assert_eq!(
- unsafe { &(*(::std::ptr::null::<S>())).large_array as *const _ as usize },
+ unsafe {
+ &(*(::std::ptr::null::<S>())).large_array as *const _ as usize
+ },
0usize,
concat!(
"Offset of field: ",