Skip to content

Commit 74f86ad

Browse files
committed
Replaced deprecated fmt attributes with rustfmt::skip
1 parent 509ec66 commit 74f86ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub const MAX_COMPONENTS: usize = 4;
2424
mod lossless;
2525
use self::lossless::compute_image_lossless;
2626

27-
#[cfg_attr(rustfmt, rustfmt_skip)]
27+
#[rustfmt::skip]
2828
static UNZIGZAG: [u8; 64] = [
2929
0, 1, 8, 16, 9, 2, 3, 10,
3030
17, 24, 32, 25, 18, 11, 4, 5,

src/idct.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ fn stbi_fsh(x: Wrapping<i32>) -> Wrapping<i32> {
579579

580580
#[test]
581581
fn test_dequantize_and_idct_block_8x8() {
582-
#[cfg_attr(rustfmt, rustfmt_skip)]
582+
#[rustfmt::skip]
583583
let coefficients: [i16; 8 * 8] = [
584584
-14, -39, 58, -2, 3, 3, 0, 1,
585585
11, 27, 4, -3, 3, 0, 1, 0,
@@ -591,7 +591,7 @@ fn test_dequantize_and_idct_block_8x8() {
591591
0, 0, 0, 0, 0, 0, 0, 0
592592
];
593593

594-
#[cfg_attr(rustfmt, rustfmt_skip)]
594+
#[rustfmt::skip]
595595
let quantization_table: [u16; 8 * 8] = [
596596
8, 6, 5, 8, 12, 20, 26, 31,
597597
6, 6, 7, 10, 13, 29, 30, 28,
@@ -610,7 +610,7 @@ fn test_dequantize_and_idct_block_8x8() {
610610
output_linestride,
611611
&mut output,
612612
);
613-
#[cfg_attr(rustfmt, rustfmt_skip)]
613+
#[rustfmt::skip]
614614
let expected_output = [
615615
118, 92, 110, 83, 77, 93, 144, 198,
616616
172, 116, 114, 87, 78, 93, 146, 191,
@@ -642,7 +642,7 @@ fn test_dequantize_and_idct_block_8x8_saturated() {
642642
}
643643
let mut output = [0u8; 8 * 8];
644644
dequantize_and_idct_block_8x8(&[i16::MAX; 8 * 8], &[u16::MAX; 8 * 8], 8, &mut output);
645-
#[cfg_attr(rustfmt, rustfmt_skip)]
645+
#[rustfmt::skip]
646646
let expected = [
647647
0, 0, 0, 255, 255, 0, 0, 255,
648648
0, 0, 215, 0, 0, 255, 255, 0,

0 commit comments

Comments
 (0)