Skip to content

Commit d555dc8

Browse files
FreezyLemonshssoichiro
authored andcommitted
Remove allow attribute for buggy clippy lints
All of these seem to be fixed on toolchains >=1.70
1 parent 22c6f05 commit d555dc8

File tree

6 files changed

+0
-17
lines changed

6 files changed

+0
-17
lines changed

ivf/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
#![warn(clippy::doc_markdown)]
3737
#![warn(clippy::missing_errors_doc)]
3838
#![warn(clippy::missing_panics_doc)]
39-
// FIXME: Temporarily disabled due to https://github.com/rust-lang/rust-clippy/issues/9142
40-
#![allow(clippy::undocumented_unsafe_blocks)]
4139

4240
/// Simple ivf muxer
4341
///

src/asm/x86/sad_plane.rs

-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ pub(crate) fn sad_plane_internal<T: Pixel>(
4444
macro_rules! call_asm {
4545
($func:ident, $src:expr, $dst:expr, $cpu:expr) => {
4646
// SAFETY: Calls Assembly code.
47-
//
48-
// FIXME: Remove `allow` once https://github.com/rust-lang/rust-clippy/issues/8264 fixed
49-
#[allow(clippy::undocumented_unsafe_blocks)]
5047
unsafe {
5148
let result = $func(
5249
mem::transmute(src.data_origin().as_ptr()),

src/tiling/plane_region.rs

-3
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,6 @@ macro_rules! plane_region_common {
411411
fn index(&self, index: usize) -> &Self::Output {
412412
assert!(index < self.rect.height);
413413
// SAFETY: The above assert ensures we do not access OOB data.
414-
//
415-
// FIXME: Remove `allow` once https://github.com/rust-lang/rust-clippy/issues/8264 fixed
416-
#[allow(clippy::undocumented_unsafe_blocks)]
417414
unsafe {
418415
let ptr = self.data.add(index * self.plane_cfg.stride);
419416
slice::from_raw_parts(ptr, self.rect.width)

src/tiling/tile_blocks.rs

-3
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ macro_rules! tile_blocks_common {
151151
fn index(&self, index: usize) -> &Self::Output {
152152
assert!(index < self.rows);
153153
// SAFETY: The above assert ensures we do not access OOB data.
154-
//
155-
// FIXME: Remove `allow` once https://github.com/rust-lang/rust-clippy/issues/8264 fixed
156-
#[allow(clippy::undocumented_unsafe_blocks)]
157154
unsafe {
158155
let ptr = self.data.add(index * self.frame_cols);
159156
slice::from_raw_parts(ptr, self.cols)

src/tiling/tile_motion_stats.rs

-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ macro_rules! tile_me_stats_common {
106106
fn index(&self, index: usize) -> &Self::Output {
107107
assert!(index < self.rows);
108108
// SAFETY: The above assert ensures we do not access OOB data.
109-
//
110-
// FIXME: Remove `allow` once https://github.com/rust-lang/rust-clippy/issues/8264 fixed
111-
#[allow(clippy::undocumented_unsafe_blocks)]
112109
unsafe {
113110
let ptr = self.data.add(index * self.stride);
114111
slice::from_raw_parts(ptr, self.cols)

src/tiling/tile_restoration_state.rs

-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ macro_rules! tile_restoration_units_common {
108108
fn index(&self, index: usize) -> &Self::Output {
109109
assert!(index < self.rows);
110110
// SAFETY: The above assert ensures we do not access OOB data.
111-
//
112-
// FIXME: Remove `allow` once https://github.com/rust-lang/rust-clippy/issues/8264 fixed
113-
#[allow(clippy::undocumented_unsafe_blocks)]
114111
unsafe {
115112
let ptr = self.data.add(index * self.stride);
116113
slice::from_raw_parts(ptr, self.cols)

0 commit comments

Comments
 (0)