Fix a warning

This commit is contained in:
John Nunley 2023-07-24 18:09:31 -07:00
parent 7b289c945b
commit 2509fc21e2
No known key found for this signature in database
GPG key ID: 42B2FA4582BB1EC9

View file

@ -100,8 +100,8 @@ impl FontSystem {
self.font_cache
.entry(id)
.or_insert_with(|| {
#[cfg(feature = "std")]
unsafe {
#[cfg(feature = "std")]
self.db.make_shared_face_data(id);
}
let face = self.db.face(id)?;