fix: import ceil for no_std

This commit is contained in:
Hojjat 2026-02-24 15:18:56 -07:00 committed by Jeremy Soller
parent 61f001b0f7
commit af2d269636
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
//! Helpers for rendering buffers and editors
#[cfg(not(feature = "std"))]
use core_maths::CoreFloat;
use crate::{Color, LayoutGlyph, LayoutRun, PhysicalGlyph, UnderlineStyle};
#[cfg(feature = "swash")]
use crate::{FontSystem, SwashCache};

View file

@ -9,7 +9,7 @@ use crate::{
Metrics, Wrap,
};
#[cfg(not(feature = "std"))]
use alloc::{format, vec, vec::Vec};
use alloc::{boxed::Box, format, vec, vec::Vec};
use alloc::collections::VecDeque;
use core::cmp::{max, min};