Clippy Fixes

This commit is contained in:
Andrew Wheeler(Genusis) 2022-10-25 10:43:38 -04:00 committed by Jeremy Soller
parent e39f8eabd5
commit 5200f67196
5 changed files with 61 additions and 62 deletions

View file

@ -43,10 +43,10 @@ impl FontSystem {
Self { locale, db }
}
pub fn matches<'a, F: Fn(&fontdb::FaceInfo) -> bool>(
&'a self,
pub fn matches<F: Fn(&fontdb::FaceInfo) -> bool>(
&self,
f: F,
) -> Option<FontMatches<'a>> {
) -> Option<FontMatches<'_>> {
let mut fonts = Vec::new();
for face in self.db.faces() {
if !f(face) {
@ -84,3 +84,9 @@ impl FontSystem {
}
}
}
impl Default for FontSystem {
fn default() -> Self {
Self::new()
}
}