Skip to content

Commit d5424b6

Browse files
hyykingcramertj
authored andcommitted
chore(lib): core lib reexport
1 parent f786dc1 commit d5424b6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
#![allow(unknown_lints)]
77
#![doc(html_root_url = "https://docs.rs/pin-utils/0.1.0")]
88

9+
#[doc(hidden)]
10+
pub mod core_reexport {
11+
pub use core::*;
12+
}
13+
914
#[macro_use]
1015
mod stack_pin;
1116
#[macro_use]

src/projection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ macro_rules! unsafe_unpinned {
9090
($f:tt: $t:ty) => (
9191
#[allow(unsafe_code)]
9292
fn $f<'__a>(
93-
self: ::core::pin::Pin<&'__a mut Self>
93+
self: $crate::core_reexport::pin::Pin<&'__a mut Self>
9494
) -> &'__a mut $t {
9595
unsafe {
96-
&mut ::core::pin::Pin::get_unchecked_mut(self).$f
96+
&mut $crate::core_reexport::pin::Pin::get_unchecked_mut(self).$f
9797
}
9898
}
9999
)

src/stack_pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ macro_rules! pin_mut {
1919
// ever again.
2020
#[allow(unused_mut)]
2121
let mut $x = unsafe {
22-
::core::pin::Pin::new_unchecked(&mut $x)
22+
$crate::core_reexport::pin::Pin::new_unchecked(&mut $x)
2323
};
2424
)* }
2525
}

0 commit comments

Comments
 (0)