diff options
Diffstat (limited to 'tests/struct.rs')
-rw-r--r-- | tests/struct.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/struct.rs b/tests/struct.rs index ec1faa4f..980ea558 100644 --- a/tests/struct.rs +++ b/tests/struct.rs @@ -7,7 +7,7 @@ extern crate libc; #[test] fn test_struct_with_anon_struct() { - mod ffi { bindgen!("headers/struct_with_anon_struct.h") } + mod ffi { bindgen!("headers/struct_with_anon_struct.h"); } let mut x = ffi::Struct_foo { bar: ffi::Struct_Unnamed1 { a: 0, b: 0 } }; x.bar.a = 1; @@ -19,7 +19,7 @@ fn test_struct_with_anon_struct() { #[test] fn test_struct_with_anon_union() { - mod ffi { bindgen!("headers/struct_with_anon_union.h") } + mod ffi { bindgen!("headers/struct_with_anon_union.h"); } let mut x = ffi::Struct_foo { bar: ffi::Union_Unnamed1 { _bindgen_data_: [0] } }; unsafe { @@ -31,7 +31,7 @@ fn test_struct_with_anon_union() { #[test] fn test_struct_with_anon_unnamed_struct() { - mod ffi { bindgen!("headers/struct_with_anon_unnamed_struct.h") } + mod ffi { bindgen!("headers/struct_with_anon_unnamed_struct.h"); } let mut x = ffi::Struct_foo { _bindgen_data_1_: [0, 0] }; unsafe { @@ -44,7 +44,7 @@ fn test_struct_with_anon_unnamed_struct() { #[test] fn test_struct_with_anon_unnamed_union() { - mod ffi { bindgen!("headers/struct_with_anon_unnamed_union.h") } + mod ffi { bindgen!("headers/struct_with_anon_unnamed_union.h"); } let mut x = ffi::Struct_foo { _bindgen_data_1_: [0] }; unsafe { @@ -56,7 +56,7 @@ fn test_struct_with_anon_unnamed_union() { #[test] fn test_struct_with_nesting() { - mod ffi { bindgen!("headers/struct_with_nesting.h") } + mod ffi { bindgen!("headers/struct_with_nesting.h"); } let mut x = ffi::Struct_foo { a: 0, _bindgen_data_1_: [0] }; unsafe { |