Skip to content

Commit

Permalink
fix(clippy): use first instead of get(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
7sDream committed Jan 21, 2024
1 parent aed7ad0 commit 1688c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader/face_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl FaceInfo {
let family = face
.families
.get(0)
.first()
.map(|(s, _)| s.as_str())
.ok_or(Error::MissingFamilyName)?;
Expand Down

0 comments on commit 1688c7b

Please sign in to comment.