diff --git a/tests/ffi/extra.rs b/tests/ffi/extra.rs index 8ca5e57a..51d21ccd 100644 --- a/tests/ffi/extra.rs +++ b/tests/ffi/extra.rs @@ -5,9 +5,6 @@ // for testing aliasing between cxx::bridge mods, so we'll keep it that way and // start a new mod here. -// Rustfmt mangles the extern type alias. -// https://github.com/rust-lang/rustfmt/issues/4159 -#[rustfmt::skip] #[cxx::bridge(namespace = "tests")] pub mod ffi2 { impl UniquePtr {} @@ -43,7 +40,7 @@ pub mod ffi2 { fn c_return_trivial_ns_ptr() -> UniquePtr; fn c_return_trivial_ns() -> G; fn c_return_opaque_ptr() -> UniquePtr; - fn c_return_ns_opaque_ptr() -> UniquePtr; + fn c_return_ns_opaque_ptr() -> UniquePtr; fn c_return_ns_unique_ptr() -> UniquePtr; fn c_take_ref_ns_c(h: &H); diff --git a/tests/ffi/module.rs b/tests/ffi/module.rs index aff1b1c5..19528859 100644 --- a/tests/ffi/module.rs +++ b/tests/ffi/module.rs @@ -1,6 +1,3 @@ -// Rustfmt mangles the extern type alias. -// https://github.com/rust-lang/rustfmt/issues/4159 -#[rustfmt::skip] #[cxx::bridge(namespace = "tests")] pub mod ffi { unsafe extern "C++" {