Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Apr 21, 2023
1 parent 07c9d4d commit 24376c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/examples/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn draw_ascii<F: Font>(font: F) {
// There's still a possibility that the glyph clips the boundaries of the bitmap
if x >= 0.0 && (x as usize) < px_width && y >= 0.0 && (y as usize) < px_height {
// save the coverage alpha
pixel_data[(x as usize + y as usize * px_width)] += v;
pixel_data[x as usize + y as usize * px_width] += v;
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion glyph/src/ttfp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ macro_rules! impl_font {
self.0.as_face_ref().number_of_glyphs() as _
}

fn codepoint_ids<'a>(&'a self) -> crate::CodepointIdIter<'a> {
fn codepoint_ids(&self) -> crate::CodepointIdIter<'_> {
let face_ref = self.0.as_face_ref();

#[cfg(feature = "std")]
Expand Down

0 comments on commit 24376c0

Please sign in to comment.