From 9c895ccf596f204225792e1751bfff31817c1b2c Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 18 Dec 2024 12:53:06 -0500 Subject: [PATCH] Fix single-use-lifetime that was fontconfig specific --- fontique/src/backend/fontconfig/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fontique/src/backend/fontconfig/mod.rs b/fontique/src/backend/fontconfig/mod.rs index 4fd3d0ec..4113aba9 100644 --- a/fontique/src/backend/fontconfig/mod.rs +++ b/fontique/src/backend/fontconfig/mod.rs @@ -270,8 +270,8 @@ fn strip_rbiz(name: &str) -> &str { name } -fn find_best_family<'a>( - raw_families: impl Iterator, +fn find_best_family( + raw_families: impl Iterator, text: &str, ) -> Option { let char_count = text.chars().count();