Skip to content

Commit

Permalink
System doesn't need to be mut on Android, causing clippy error.
Browse files Browse the repository at this point in the history
  • Loading branch information
xorgy committed Apr 19, 2024
1 parent 7ecc2b8 commit 9884d7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fontique/collection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9884d7b

Please sign in to comment.