Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy fixes #282

Merged
merged 4 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bitmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub struct Bitmap {

impl Bitmap {
pub unsafe fn from_raw(raw: *const ffi::FT_Bitmap) -> Self {
Bitmap { raw: raw }
Bitmap { raw }
}

/// A typeless pointer to the bitmap buffer. This value should be aligned
Expand Down
2 changes: 1 addition & 1 deletion src/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<'a, BYTES> CharIterator<'a, BYTES> {
}
}

impl<'a, BYTES> Iterator for CharIterator<'a, BYTES> {
impl<BYTES> Iterator for CharIterator<'_, BYTES> {
type Item = (usize, NonZeroU32);

fn next(&mut self) -> Option<Self::Item> {
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
//! - See [freetype docs](http://www.freetype.org/freetype2/docs/reference/ft2-index.html)
//! for more information

#![allow(clippy::missing_safety_doc)]
#![deny(missing_copy_implementations)]

pub use freetype_sys;
Expand Down
4 changes: 2 additions & 2 deletions src/outline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl<'a> Outline<'a> {
}

pub fn flags(&self) -> i32 {
i32::from(self.raw.flags)
self.raw.flags
}
}

Expand Down Expand Up @@ -85,7 +85,7 @@ impl<'a> CurveIterator<'a> {
}
}

impl<'a> Iterator for CurveIterator<'a> {
impl Iterator for CurveIterator<'_> {
type Item = Curve;

fn next(&mut self) -> Option<Self::Item> {
Expand Down