1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00

Fix tests and Cargo warnings

This commit is contained in:
Joshua Goins 2025-06-27 17:59:40 -04:00
parent 7b8177b27b
commit 2075da0c5e

View file

@ -1,12 +1,12 @@
use std::{fs::write, io::Cursor}; use std::{fs::write, io::Cursor};
use binrw::{BinRead, BinWrite, binrw}; use binrw::{BinRead, binrw};
use crate::{ use crate::{
common::{read_string, timestamp_msecs, write_string}, common::{read_string, write_string},
config::get_config, config::get_config,
ipc::kawari::CustomIpcSegment, ipc::kawari::CustomIpcSegment,
packet::{compression::compress, encryption::decrypt}, packet::encryption::decrypt,
}; };
use super::{ use super::{
@ -218,6 +218,7 @@ pub fn parse_packet<T: ReadWriteIpcSegment>(
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::packet::IpcSegment; use crate::packet::IpcSegment;
use binrw::BinWrite;
use super::*; use super::*;
@ -244,6 +245,10 @@ mod tests {
fn calc_size(&self) -> u32 { fn calc_size(&self) -> u32 {
todo!() todo!()
} }
fn get_name(&self) -> &'static str {
todo!()
}
} }
let packet_types = [ let packet_types = [