Skip to content

Commit 4d8c719

Browse files
committed
Move Option export next to UnsafeCell and AtomicBool
1 parent 0021748 commit 4d8c719

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@
161161
clippy::semicolon_if_nothing_returned, // https://github.com/rust-lang/rust-clippy/issues/7324
162162
)]
163163

164-
// Not public API.
165-
#[doc(hidden)]
166-
pub extern crate core;
167-
168164
use core::cell::UnsafeCell;
169165
use core::marker::PhantomData;
170166
use core::ops::Deref;
@@ -490,6 +486,9 @@ macro_rules! submit {
490486
// Not public API.
491487
#[doc(hidden)]
492488
pub mod __private {
489+
#[doc(hidden)]
490+
pub use core::option::Option;
491+
493492
#[cfg(target_family = "wasm")]
494493
#[doc(hidden)]
495494
pub use rustversion::attr;
@@ -515,7 +514,7 @@ macro_rules! __do_submit {
515514
const _: () = {
516515
static __INVENTORY: $crate::Node = $crate::Node {
517516
value: &{ $($value)* },
518-
next: $crate::__private::UnsafeCell::new($crate::core::option::Option::None),
517+
next: $crate::__private::UnsafeCell::new($crate::__private::Option::None),
519518
#[cfg(target_family = "wasm")]
520519
initialized: $crate::__private::AtomicBool::new(false),
521520
};

0 commit comments

Comments
 (0)