Fix no_std build
This commit is contained in:
parent
73acfb0962
commit
430b3abc9f
1 changed files with 4 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
#[cfg(not(feature = "std"))]
|
||||
use hashbrown::hash_map::Entry;
|
||||
#[cfg(feature = "std")]
|
||||
use std::collections::hash_map::Entry;
|
||||
|
||||
use crate::{Font, HashMap};
|
||||
|
|
@ -45,7 +48,7 @@ impl ShapePlanCache {
|
|||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for ShapePlanCache {
|
||||
impl core::fmt::Debug for ShapePlanCache {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||
f.debug_tuple("ShapePlanCache").finish()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue