Clippy Fixes
This commit is contained in:
parent
e39f8eabd5
commit
5200f67196
5 changed files with 61 additions and 62 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue