From 2509fc21e263c0f392ea712e0d73078502384bcb Mon Sep 17 00:00:00 2001 From: John Nunley Date: Mon, 24 Jul 2023 18:09:31 -0700 Subject: [PATCH] Fix a warning --- src/font/system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/font/system.rs b/src/font/system.rs index 605617b..1152cd2 100644 --- a/src/font/system.rs +++ b/src/font/system.rs @@ -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)?;