From 2202524c3d6bc911c461bd8bb403cf72bf74f3e7 Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Wed, 18 Sep 2024 10:20:32 -0600 Subject: [PATCH] fix --- src/shared_ptr.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/shared_ptr.rs b/src/shared_ptr.rs index aa96f64a4..5e14fcc2a 100644 --- a/src/shared_ptr.rs +++ b/src/shared_ptr.rs @@ -249,10 +249,8 @@ macro_rules! impl_shared_ptr_target { } unsafe fn __from_unmanaged(value: *mut Self, new: *mut c_void) { extern "C" { - attr! { - #[link_name = concat!("cxxbridge1$std$shared_ptr$", $segment, "$from_unmanaged")] - fn __from_unmanaged(new: *mut c_void, value: *mut c_void); - } + #[link_name = concat!("cxxbridge1$std$shared_ptr$", $segment, "$from_unmanaged")] + fn __from_unmanaged(new: *mut c_void, value: *mut c_void); } unsafe { __from_unmanaged(new, value as *mut c_void) } }