Skip to content

Commit

Permalink
Disable invalid cast lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Feb 17, 2024
1 parent a2e9135 commit 9241a76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/control/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,7 @@ impl Iterator for Events {
self.i += event.length as usize;
match event.type_ {
ffi::DRM_EVENT_VBLANK => {
#[allow(invalid_reference_casting)]

Check failure on line 1132 in src/control/mod.rs

View workflow job for this annotation

GitHub Actions / check

unknown lint: `invalid_reference_casting`

Check failure on line 1132 in src/control/mod.rs

View workflow job for this annotation

GitHub Actions / check

unknown lint: `invalid_reference_casting`
let vblank_event =
unsafe { &*(event as *const _ as *const ffi::drm_event_vblank) };
Some(Event::Vblank(VblankEvent {
Expand All @@ -1143,6 +1144,7 @@ impl Iterator for Events {
}))
}
ffi::DRM_EVENT_FLIP_COMPLETE => {
#[allow(invalid_reference_casting)]

Check failure on line 1147 in src/control/mod.rs

View workflow job for this annotation

GitHub Actions / check

unknown lint: `invalid_reference_casting`

Check failure on line 1147 in src/control/mod.rs

View workflow job for this annotation

GitHub Actions / check

unknown lint: `invalid_reference_casting`
let vblank_event =
unsafe { &*(event as *const _ as *const ffi::drm_event_vblank) };
Some(Event::PageFlip(PageFlipEvent {
Expand Down

0 comments on commit 9241a76

Please sign in to comment.