Skip to content

Commit 1bdd9ab

Browse files
cfsmp3claude
andcommitted
fix(clippy): Suppress dead_code warnings for unused HEVC NAL constants
The HEVC NAL type constants are defined for completeness and reference, but not all are currently used in the codebase. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 9e970fd commit 1bdd9ab

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/rust/src/avc/core.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,36 @@ pub fn round_portable(x: f64) -> f64 {
1818
(x + 0.5).floor()
1919
}
2020

21-
// HEVC NAL unit types
21+
// HEVC NAL unit types (defined for completeness, not all currently used)
22+
#[allow(dead_code)]
2223
const HEVC_NAL_TRAIL_N: u8 = 0;
24+
#[allow(dead_code)]
2325
const HEVC_NAL_TRAIL_R: u8 = 1;
26+
#[allow(dead_code)]
2427
const HEVC_NAL_TSA_N: u8 = 2;
28+
#[allow(dead_code)]
2529
const HEVC_NAL_TSA_R: u8 = 3;
30+
#[allow(dead_code)]
2631
const HEVC_NAL_STSA_N: u8 = 4;
32+
#[allow(dead_code)]
2733
const HEVC_NAL_STSA_R: u8 = 5;
34+
#[allow(dead_code)]
2835
const HEVC_NAL_RADL_N: u8 = 6;
36+
#[allow(dead_code)]
2937
const HEVC_NAL_RADL_R: u8 = 7;
38+
#[allow(dead_code)]
3039
const HEVC_NAL_RASL_N: u8 = 8;
40+
#[allow(dead_code)]
3141
const HEVC_NAL_RASL_R: u8 = 9;
42+
#[allow(dead_code)]
3243
const HEVC_NAL_BLA_W_LP: u8 = 16;
44+
#[allow(dead_code)]
3345
const HEVC_NAL_BLA_W_RADL: u8 = 17;
46+
#[allow(dead_code)]
3447
const HEVC_NAL_BLA_N_LP: u8 = 18;
3548
const HEVC_NAL_IDR_W_RADL: u8 = 19;
3649
const HEVC_NAL_IDR_N_LP: u8 = 20;
50+
#[allow(dead_code)]
3751
const HEVC_NAL_CRA_NUT: u8 = 21;
3852
const HEVC_NAL_VPS: u8 = 32;
3953
const HEVC_NAL_SPS: u8 = 33;

0 commit comments

Comments
 (0)