From 9f4eb05b772c86f23ef4ac3176c77fdb8cef55b9 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 22 May 2024 00:12:29 +0200 Subject: [PATCH] Appease clippy --- src/ft/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ft/mod.rs b/src/ft/mod.rs index 1274e10..de0ccdb 100644 --- a/src/ft/mod.rs +++ b/src/ft/mod.rs @@ -693,7 +693,7 @@ impl FreeTypeLoader { font_key: FontKey, ) -> Result, Error> { if let Some(ft_face_location) = pattern.ft_face_location(0) { - if self.faces.get(&font_key).is_some() { + if self.faces.contains_key(&font_key) { return Ok(Some(font_key)); }