Skip to content

Commit 2fe2198

Browse files
committed
cargo clippy
https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#byte_char_slices Also flip from le to be for more readable code Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 2628d5f commit 2fe2198

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

framework_lib/src/ccgx/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const FW2_METADATA_ROW_CCG8: u32 = 0x3FF;
3131
const METADATA_OFFSET: usize = 0xC0; // TODO: Is this 0x40 on ADL?
3232
const CCG8_METADATA_OFFSET: usize = 0x80;
3333
const CCG3_METADATA_OFFSET: usize = 0x40;
34-
const METADATA_MAGIC: u16 = u16::from_le_bytes([b'Y', b'C']); // CY (Cypress)
35-
const CCG8_METADATA_MAGIC: u16 = u16::from_le_bytes([b'F', b'I']); // IF (Infineon)
34+
const METADATA_MAGIC: u16 = u16::from_be_bytes(*b"CY"); // CY (Cypress)
35+
const CCG8_METADATA_MAGIC: u16 = u16::from_be_bytes(*b"IF"); // IF (Infineon)
3636

3737
#[repr(C, packed)]
3838
#[derive(FromBytes, KnownLayout, Debug, Copy, Clone)]

0 commit comments

Comments
 (0)