Skip to content

Commit 65a0348

Browse files
fix: fix 2 rust clippy warnings/errors
1 parent 564795c commit 65a0348

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/rust/src/decoder/encoding.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
/// 256 BYTES IS ENOUGH FOR ALL THE SUPPORTED CHARACTERS IN
2-
/// EIA-708, SO INTERNALLY WE USE THIS TABLE (FOR CONVENIENCE)
3-
///
4-
/// 00-1F -> Characters that are in the G2 group in 20-3F,
5-
/// except for 06, which is used for the closed captions
6-
/// sign "CC" which is defined in group G3 as 00. (this
7-
/// is by the article 33).
8-
/// 20-7F -> Group G0 as is - corresponds to the ASCII code
9-
/// 80-9F -> Characters that are in the G2 group in 60-7F
10-
/// (there are several blank characters here, that's OK)
11-
/// A0-FF -> Group G1 as is - non-English characters and symbols
1+
//! 256 BYTES IS ENOUGH FOR ALL THE SUPPORTED CHARACTERS IN
2+
//! EIA-708, SO INTERNALLY WE USE THIS TABLE (FOR CONVENIENCE)
3+
//!
4+
//! 00-1F -> Characters that are in the G2 group in 20-3F,
5+
//! except for 06, which is used for the closed captions
6+
//! sign "CC" which is defined in group G3 as 00. (this
7+
//! is by the article 33).
8+
//! 20-7F -> Group G0 as is - corresponds to the ASCII code
9+
//! 80-9F -> Characters that are in the G2 group in 60-7F
10+
//! (there are several blank characters here, that's OK)
11+
//! A0-FF -> Group G1 as is - non-English characters and symbols
1212
1313
// NOTE: Same as `lib_ccx/ccx_decoder_708_encoding.c` file
1414

src/rust/src/decoder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl dtvcc_symbol {
213213
}
214214
/// Create a new 16 bit symbol
215215
pub fn new_16(data1: u8, data2: u8) -> Self {
216-
let sym = (data1 as u16) << 8 | data2 as u16;
216+
let sym = ((data1 as u16) << 8) | data2 as u16;
217217
Self { init: 1, sym }
218218
}
219219
/// Check if symbol is initialized

0 commit comments

Comments
 (0)