Fix no_std compilation

This commit is contained in:
Jeremy Soller 2022-12-15 14:31:19 -07:00
parent be4dc2749c
commit ba39c81656
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE

View file

@ -2,6 +2,8 @@
#[cfg(not(feature = "std"))]
use alloc::collections::BTreeMap as Map;
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
#[cfg(feature = "std")]
use std::collections::HashMap as Map;
use swash::scale::{ScaleContext, image::Content};