mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
clippy fixes (#974)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user