From 9884d7b39f483c39349b932967f8bacb828fdd4b Mon Sep 17 00:00:00 2001 From: Aaron Muir Hamilton Date: Fri, 19 Apr 2024 18:59:20 -0400 Subject: [PATCH] System doesn't need to be `mut` on Android, causing clippy error. --- src/fontique/collection/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fontique/collection/mod.rs b/src/fontique/collection/mod.rs index 69ecb6ee..645349f1 100644 --- a/src/fontique/collection/mod.rs +++ b/src/fontique/collection/mod.rs @@ -347,6 +347,8 @@ impl Inner { if let Some(families) = self.data.fallbacks.get(selector) { self.fallback_cache.set(script, lang_key, families); } else if let Some(system) = self.system.as_ref() { + // Some platforms don't need mut System + #[allow(unused_mut)] let mut system = system.fonts.lock().unwrap(); if let Some(family) = system.fallback(selector) { self.data.fallbacks.set(selector, core::iter::once(family));