summaryrefslogtreecommitdiff
path: root/tests/expectations/tests/class_with_dtor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expectations/tests/class_with_dtor.rs')
-rw-r--r--tests/expectations/tests/class_with_dtor.rs14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/expectations/tests/class_with_dtor.rs b/tests/expectations/tests/class_with_dtor.rs
index 4a5b090d..9baa1b4d 100644
--- a/tests/expectations/tests/class_with_dtor.rs
+++ b/tests/expectations/tests/class_with_dtor.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, Hash, PartialEq, Eq)]
@@ -34,7 +37,10 @@ fn bindgen_test_layout_WithoutDtor() {
concat!("Alignment of ", stringify!(WithoutDtor))
);
assert_eq!(
- unsafe { &(*(::std::ptr::null::<WithoutDtor>())).shouldBeWithDtor as *const _ as usize },
+ unsafe {
+ &(*(::std::ptr::null::<WithoutDtor>())).shouldBeWithDtor as *const _
+ as usize
+ },
0usize,
concat!(
"Offset of field: ",