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 self.font_cache
.entry(id) .entry(id)
.or_insert_with(|| { .or_insert_with(|| {
#[cfg(feature = "std")]
unsafe { unsafe {
#[cfg(feature = "std")]
self.db.make_shared_face_data(id); self.db.make_shared_face_data(id);
} }
let face = self.db.face(id)?; let face = self.db.face(id)?;