diff --git a/src/bin/kawari-patch.rs b/src/bin/kawari-patch.rs index 694ba6c..84ead36 100644 --- a/src/bin/kawari-patch.rs +++ b/src/bin/kawari-patch.rs @@ -90,7 +90,7 @@ async fn verify_session( let body_parts: Vec<&str> = body.split('\n').collect(); - let hashes = body_parts[0]; + let _hashes = body_parts[0]; let expansion_versions = &body_parts[1..body_parts.len() - 1]; // last part is empty let game_version = Version(&game_version); @@ -170,8 +170,8 @@ async fn verify_boot( let patch_list = PatchList { id: "477D80B1_38BC_41d4_8B48_5273ADB89CAC".to_string(), requested_version: boot_version.to_string().clone(), - patch_length: todo!(), - content_location: todo!(), + patch_length: 0, + content_location: String::new(), patches: vec![PatchEntry { url: format!("http://{}/{}", config.patch.patch_dl_url, patch).to_string(), version: "2023.09.15.0000.0000".to_string(), diff --git a/src/oodle.rs b/src/oodle.rs index 401366a..4b218f6 100644 --- a/src/oodle.rs +++ b/src/oodle.rs @@ -1,3 +1,8 @@ +// These are triggered in non-Oodle builds +#![allow(non_snake_case)] +#![allow(unused_unsafe)] +#![allow(unused_variables)] + use std::{ffi::c_void, ptr::null}; #[cfg(feature = "oodle")] diff --git a/src/packet/parsing.rs b/src/packet/parsing.rs index 1f0ed81..0b37d75 100644 --- a/src/packet/parsing.rs +++ b/src/packet/parsing.rs @@ -247,7 +247,7 @@ mod tests { } #[binrw] - #[br(import(magic: &ClientLobbyIpcType))] + #[br(import(_magic: &ClientLobbyIpcType))] #[derive(Debug, Clone)] enum ClientLobbyIpcData { Dummy(),