From 9a5579f5231bc52b3688a2de3643091f1ce32cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Kildev=C3=A6ld?= Date: Fri, 27 Mar 2026 14:24:45 +0100 Subject: [PATCH] Import CoreFloat when no_std is enabled --- src/swash.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/swash.rs b/src/swash.rs index e046ded..c644ca1 100644 --- a/src/swash.rs +++ b/src/swash.rs @@ -1,7 +1,10 @@ // SPDX-License-Identifier: MIT OR Apache-2.0 #[cfg(not(feature = "std"))] -use alloc::vec::Vec; +use alloc::boxed::Box; +#[cfg(feature = "no_std")] +use core_maths::CoreFloat; + use core::fmt; use swash::scale::{image::Content, ScaleContext}; use swash::scale::{Render, Source, StrikeWith};