Skip to content

Commit 0f44d76

Browse files
committed
allow clippy lints
1 parent bc32bfa commit 0f44d76

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lvgl/src/display.rs

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ impl<'a> Display {
8888
///
8989
/// `hor_res` and `ver_res` must be nonzero, and the provided functions
9090
/// must not themselves cause undefined behavior.
91+
#[allow(clippy::too_many_arguments)]
9192
pub unsafe fn register_raw<const N: usize>(
9293
draw_buffer: DrawBuffer<N>,
9394
hor_res: u32,
@@ -229,6 +230,7 @@ impl<'a, const N: usize> DisplayDriver<N> {
229230
}))
230231
}
231232

233+
#[allow(clippy::too_many_arguments)]
232234
pub unsafe fn new_raw(
233235
mut draw_buffer: DrawBuffer<N>,
234236
flush_cb: Option<

lvgl/src/lv_core/screen.rs

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ impl<'a> TryFrom<Obj<'a>> for Screen<'a> {
4141
}
4242
}
4343

44+
#[allow(clippy::from_over_into)]
4445
impl<'a> Into<Obj<'a>> for Screen<'a> {
4546
fn into(self) -> Obj<'a> {
4647
self.raw

0 commit comments

Comments
 (0)