mirror of
https://github.com/openharmony/third_party_rust_pin-utils.git
synced 2026-06-30 21:47:59 -04:00
chore(lib): core lib reexport
This commit is contained in:
+3
-3
@@ -41,10 +41,10 @@ macro_rules! unsafe_pinned {
|
||||
($f:tt: $t:ty) => (
|
||||
#[allow(unsafe_code)]
|
||||
fn $f<'__a>(
|
||||
self: ::core::pin::Pin<&'__a mut Self>
|
||||
) -> ::core::pin::Pin<&'__a mut $t> {
|
||||
self: $crate::core_reexport::pin::Pin<&'__a mut Self>
|
||||
) -> $crate::core_reexport::pin::Pin<&'__a mut $t> {
|
||||
unsafe {
|
||||
::core::pin::Pin::map_unchecked_mut(
|
||||
$crate::core_reexport::pin::Pin::map_unchecked_mut(
|
||||
self, |x| &mut x.$f
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user