Skip to content

Commit 23707c3

Browse files
committed
fn BitDepth::{cast_coef_slice,select_into}: _-prefix unused methods detected by the updated rustc.
1 parent e696f6f commit 23707c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/common/bitdepth.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ pub trait BitDepth: Clone + Copy {
239239
Self::Pixel::mut_slice_from(bytes).unwrap()
240240
}
241241

242-
fn cast_coef_slice(bytes: &[u8]) -> &[Self::Coef] {
242+
fn _cast_coef_slice(bytes: &[u8]) -> &[Self::Coef] {
243243
Self::Coef::slice_from(bytes).unwrap()
244244
}
245245

@@ -261,7 +261,7 @@ pub trait BitDepth: Clone + Copy {
261261
T::T<BitDepth8>: Copy,
262262
T::T<BitDepth16>: Copy;
263263

264-
unsafe fn select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
264+
unsafe fn _select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
265265
where
266266
T: BitDepthDependentType,
267267
T::T<BitDepth8>: Copy,
@@ -337,7 +337,7 @@ impl BitDepth for BitDepth8 {
337337
&mut bd.bpc8
338338
}
339339

340-
unsafe fn select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
340+
unsafe fn _select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
341341
where
342342
T: BitDepthDependentType,
343343
T::T<BitDepth8>: Copy,
@@ -418,7 +418,7 @@ impl BitDepth for BitDepth16 {
418418
&mut bd.bpc16
419419
}
420420

421-
unsafe fn select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
421+
unsafe fn _select_into<T>(bd: BitDepthUnion<T>) -> T::T<Self>
422422
where
423423
T: BitDepthDependentType,
424424
T::T<BitDepth8>: Copy,

0 commit comments

Comments
 (0)