fix: import ceil for no_std
This commit is contained in:
parent
61f001b0f7
commit
af2d269636
2 changed files with 4 additions and 1 deletions
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue