Skip to content

Commit

Permalink
Remove hopefully unnecessary lint guards
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical authored and Drakulix committed Mar 27, 2024
1 parent 16bcbcd commit 32aec87
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/control/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,6 @@ impl Iterator for Events {
self.i += event.length as usize;
match event.type_ {
ffi::DRM_EVENT_VBLANK => {
#[allow(unknown_lints)]
#[allow(invalid_reference_casting)]
let vblank_event = unsafe {
std::ptr::read_unaligned(event_ptr as *const ffi::drm_event_vblank)
};
Expand All @@ -1161,8 +1159,6 @@ impl Iterator for Events {
}))
}
ffi::DRM_EVENT_FLIP_COMPLETE => {
#[allow(unknown_lints)]
#[allow(invalid_reference_casting)]
let vblank_event = unsafe {
std::ptr::read_unaligned(event_ptr as *const ffi::drm_event_vblank)
};
Expand Down

0 comments on commit 32aec87

Please sign in to comment.