clippy fixes (#974)

This commit is contained in:
Logan McNaughton
2026-05-28 15:25:23 +02:00
committed by GitHub
parent 40ab4ceb2b
commit 8a8596a66b
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ pub fn init(device: &mut device::Device, rom_file: &[u8]) {
}
fn is_system_pal(country: u8) -> bool {
let pal_codes: [u8; 8] = [b'D', b'F', b'I', b'P', b'S', b'U', b'X', b'Y'];
let pal_codes: [u8; 8] = *b"DFIPSUXY";
for i in pal_codes {
if country == i {
return true;
+1 -1
View File
@@ -763,7 +763,7 @@ pub fn cache(device: &mut device::Device, opcode: u32) {
}
}
_ => {
panic!("unknown cache code {:#01x}", rt(opcode))
panic!("unknown cache code {:x}", rt(opcode))
}
}
}
+1 -1
View File
@@ -18,7 +18,7 @@ fn respond_to_handshake(usb_tx: &tokio::sync::broadcast::Sender<UsbData>, data:
ui::usb::send_to_usb(
usb_tx,
ui::usb::UsbData {
data: [b'N', b'6', b'4'].to_vec(),
data: b"N64".to_vec(),
data_type: DATATYPE_TCPTEST,
data_size: 3,
},