Skip to content

Commit 5338c15

Browse files
authored
fix: Cargo Clippy failing on 1.91 (#1758)
1 parent ee232b5 commit 5338c15

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/rust/lib_ccxr/src/common/options.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,7 @@ pub struct Decoder608Report {
139139
pub cc_channels: [u8; 4],
140140
}
141141

142-
impl Default for Decoder608ColorCode {
143-
fn default() -> Self {
144-
Self::Userdefined
145-
}
146-
}
147-
148-
#[derive(Debug, Copy, Clone)]
142+
#[derive(Debug, Copy, Clone, Default)]
149143
pub enum Decoder608ColorCode {
150144
White = 0,
151145
Green = 1,
@@ -154,6 +148,7 @@ pub enum Decoder608ColorCode {
154148
Red = 4,
155149
Yellow = 5,
156150
Magenta = 6,
151+
#[default]
157152
Userdefined = 7,
158153
Black = 8,
159154
Transparent = 9,

0 commit comments

Comments
 (0)