Don't use Lazy to initialize the ITEM_TREE, use OnceBox instead

Lazy needs std
This commit is contained in:
Olivier Goffart 2021-12-01 09:51:58 +01:00 committed by Olivier Goffart
parent 6b60e832ed
commit a201c31eaf
3 changed files with 7 additions and 7 deletions

View file

@ -251,8 +251,7 @@ pub fn register_font_from_path<P: AsRef<std::path::Path>>(
pub mod re_exports {
pub use const_field_offset::{self, FieldOffsets, PinnedDrop};
pub use core::iter::FromIterator;
#[cfg(feature = "std")]
pub use once_cell::sync::Lazy;
pub use once_cell::race::OnceBox;
pub use once_cell::unsync::OnceCell;
pub use pin_weak::rc::PinWeak;
pub use sixtyfps_corelib::animations::EasingCurve;