diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cmath.rs | 2 | ||||
-rw-r--r-- | tests/struct.rs | 10 | ||||
-rw-r--r-- | tests/union.rs | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/tests/cmath.rs b/tests/cmath.rs index 97217c53..f3fa1840 100644 --- a/tests/cmath.rs +++ b/tests/cmath.rs @@ -10,7 +10,7 @@ extern crate libc; #[allow(non_camel_case_types)] #[allow(non_upper_case_globals)] pub mod ffi { - bindgen!("/usr/include/math.h", link = "m") + bindgen!("/usr/include/math.h", link = "m"); } #[test] 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 { diff --git a/tests/union.rs b/tests/union.rs index aae1e65d..2bdb313e 100644 --- a/tests/union.rs +++ b/tests/union.rs @@ -9,7 +9,7 @@ extern crate libc; fn test_union_with_anon_struct() { // XXX: Rustc thinks that the anonymous struct, bar, is unused. #[allow(dead_code)] - mod ffi { bindgen!("headers/union_with_anon_struct.h") } + mod ffi { bindgen!("headers/union_with_anon_struct.h"); } let mut x = ffi::Union_foo { _bindgen_data_: [0, 0] }; unsafe { @@ -23,7 +23,7 @@ fn test_union_with_anon_struct() { #[test] fn test_union_with_anon_union() { - mod ffi { bindgen!("headers/union_with_anon_union.h") } + mod ffi { bindgen!("headers/union_with_anon_union.h"); } let mut x = ffi::Union_foo { _bindgen_data_: [0] }; unsafe { @@ -36,7 +36,7 @@ fn test_union_with_anon_union() { #[test] fn test_union_with_anon_unnamed_struct() { - mod ffi { bindgen!("headers/union_with_anon_unnamed_struct.h") } + mod ffi { bindgen!("headers/union_with_anon_unnamed_struct.h"); } let mut x = ffi::Union_pixel { _bindgen_data_: [0] }; unsafe { @@ -55,7 +55,7 @@ fn test_union_with_anon_unnamed_struct() { #[test] fn test_union_with_anon_unnamed_union() { - mod ffi { bindgen!("headers/union_with_anon_unnamed_union.h") } + mod ffi { bindgen!("headers/union_with_anon_unnamed_union.h"); } let mut x = ffi::Union_foo { _bindgen_data_: [0] }; unsafe { @@ -69,7 +69,7 @@ fn test_union_with_anon_unnamed_union() { #[test] fn test_union_with_nesting() { - mod ffi { bindgen!("headers/union_with_nesting.h") } + mod ffi { bindgen!("headers/union_with_nesting.h"); } let mut x = ffi::Union_foo { _bindgen_data_: [0] }; unsafe { |