Skip to content

Commit 3dc7514

Browse files
PolyMeilexDrakulix
authored andcommitted
Disable invalid cast lint
1 parent ba9eb6d commit 3dc7514

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/control/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,8 @@ impl Iterator for Events {
11291129
self.i += event.length as usize;
11301130
match event.type_ {
11311131
ffi::DRM_EVENT_VBLANK => {
1132+
#[allow(unknown_lints)]
1133+
#[allow(invalid_reference_casting)]
11321134
let vblank_event =
11331135
unsafe { &*(event as *const _ as *const ffi::drm_event_vblank) };
11341136
Some(Event::Vblank(VblankEvent {
@@ -1143,6 +1145,8 @@ impl Iterator for Events {
11431145
}))
11441146
}
11451147
ffi::DRM_EVENT_FLIP_COMPLETE => {
1148+
#[allow(unknown_lints)]
1149+
#[allow(invalid_reference_casting)]
11461150
let vblank_event =
11471151
unsafe { &*(event as *const _ as *const ffi::drm_event_vblank) };
11481152
Some(Event::PageFlip(PageFlipEvent {

0 commit comments

Comments
 (0)