Skip to content

Commit

Permalink
allow clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nia-e committed Jun 21, 2023
1 parent bc32bfa commit 0f44d76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lvgl/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ impl<'a> Display {
///
/// `hor_res` and `ver_res` must be nonzero, and the provided functions
/// must not themselves cause undefined behavior.
#[allow(clippy::too_many_arguments)]
pub unsafe fn register_raw<const N: usize>(
draw_buffer: DrawBuffer<N>,
hor_res: u32,
Expand Down Expand Up @@ -229,6 +230,7 @@ impl<'a, const N: usize> DisplayDriver<N> {
}))
}

#[allow(clippy::too_many_arguments)]
pub unsafe fn new_raw(
mut draw_buffer: DrawBuffer<N>,
flush_cb: Option<
Expand Down
1 change: 1 addition & 0 deletions lvgl/src/lv_core/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ impl<'a> TryFrom<Obj<'a>> for Screen<'a> {
}
}

#[allow(clippy::from_over_into)]
impl<'a> Into<Obj<'a>> for Screen<'a> {
fn into(self) -> Obj<'a> {
self.raw
Expand Down

0 comments on commit 0f44d76

Please sign in to comment.