From ba39c8165676c75f89522173aa5b3a3d042b7ad3 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 15 Dec 2022 14:31:19 -0700 Subject: [PATCH] Fix no_std compilation --- src/swash.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/swash.rs b/src/swash.rs index 28dfe27..a69b4a9 100644 --- a/src/swash.rs +++ b/src/swash.rs @@ -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};