Skip to content

Commit

Permalink
fix: use the correct import path for Cell when building without std
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Jan 31, 2021
1 parent 3e48630 commit d90cfc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/singleton.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::std_core::{fmt, hash, marker::PhantomData, ops, ptr::NonNull};
use crate::std_core::{cell, fmt, hash, marker::PhantomData, ops, ptr::NonNull};

use super::{Token, Unsync};

Expand Down Expand Up @@ -88,7 +88,7 @@ pub type UnsyncSingletonToken<Tag> = SingletonToken<Tag, UnsyncVariant>;
#[doc(hidden)]
pub struct SyncVariant(());
#[doc(hidden)]
pub struct UnsyncVariant(std::cell::Cell<()>);
pub struct UnsyncVariant(cell::Cell<()>);

#[doc(hidden)]
pub trait SingletonTokenVariant: private::Sealed {}
Expand Down

0 comments on commit d90cfc1

Please sign in to comment.