Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed May 21, 2024
1 parent c9c1430 commit 9f4eb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ft/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ impl FreeTypeLoader {
font_key: FontKey,
) -> Result<Option<FontKey>, Error> {
if let Some(ft_face_location) = pattern.ft_face_location(0) {
if self.faces.get(&font_key).is_some() {
if self.faces.contains_key(&font_key) {
return Ok(Some(font_key));
}

Expand Down

0 comments on commit 9f4eb05

Please sign in to comment.