mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 23:29:50 +00:00
No longer need rustfmt::skip when using extern type alias
This commit is contained in:
parent
80ef068ea0
commit
b2bf244a90
@ -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<D> {}
|
||||
@ -43,7 +40,7 @@ pub mod ffi2 {
|
||||
fn c_return_trivial_ns_ptr() -> UniquePtr<G>;
|
||||
fn c_return_trivial_ns() -> G;
|
||||
fn c_return_opaque_ptr() -> UniquePtr<E>;
|
||||
fn c_return_ns_opaque_ptr() -> UniquePtr<F>;
|
||||
fn c_return_ns_opaque_ptr() -> UniquePtr<F>;
|
||||
fn c_return_ns_unique_ptr() -> UniquePtr<H>;
|
||||
fn c_take_ref_ns_c(h: &H);
|
||||
|
||||
|
@ -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++" {
|
||||
|
Loading…
Reference in New Issue
Block a user