mirror of
https://github.com/redstrate/Kawari.git
synced 2025-06-30 03:37:45 +00:00
Fix tests and Cargo warnings
This commit is contained in:
parent
7b8177b27b
commit
2075da0c5e
1 changed files with 8 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
|||
use std::{fs::write, io::Cursor};
|
||||
|
||||
use binrw::{BinRead, BinWrite, binrw};
|
||||
use binrw::{BinRead, binrw};
|
||||
|
||||
use crate::{
|
||||
common::{read_string, timestamp_msecs, write_string},
|
||||
common::{read_string, write_string},
|
||||
config::get_config,
|
||||
ipc::kawari::CustomIpcSegment,
|
||||
packet::{compression::compress, encryption::decrypt},
|
||||
packet::encryption::decrypt,
|
||||
};
|
||||
|
||||
use super::{
|
||||
|
@ -218,6 +218,7 @@ pub fn parse_packet<T: ReadWriteIpcSegment>(
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::packet::IpcSegment;
|
||||
use binrw::BinWrite;
|
||||
|
||||
use super::*;
|
||||
|
||||
|
@ -244,6 +245,10 @@ mod tests {
|
|||
fn calc_size(&self) -> u32 {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn get_name(&self) -> &'static str {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
let packet_types = [
|
||||
|
|
Loading…
Add table
Reference in a new issue