Import CoreFloat when no_std is enabled
This commit is contained in:
parent
158d8ba518
commit
9a5579f523
1 changed files with 4 additions and 1 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue