Update packet_inspector

This commit is contained in:
Ryan 2022-09-01 00:57:02 -07:00
parent 5fb46178dd
commit 27033c758e
4 changed files with 5 additions and 5 deletions

View file

@ -68,4 +68,4 @@ num = "0.4"
protocol = [] protocol = []
[workspace] [workspace]
members = ["packet-inspector", "valence_nbt"] members = ["valence_nbt", "packet_inspector"]

View file

@ -1,5 +1,5 @@
[package] [package]
name = "packet-inspector" name = "packet_inspector"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
description = "A simple Minecraft proxy for inspecting packets." description = "A simple Minecraft proxy for inspecting packets."

View file

@ -46,9 +46,9 @@ impl Cli {
fn print(&self, d: &impl fmt::Debug) { fn print(&self, d: &impl fmt::Debug) {
if self.timestamp { if self.timestamp {
let now: DateTime<Utc> = Utc::now(); let now: DateTime<Utc> = Utc::now();
println!("{now} {d:?}"); println!("{now} {d:#?}");
} else { } else {
println!("{d:?}"); println!("{d:#?}");
} }
} }

View file

@ -138,7 +138,7 @@ pub mod ident;
pub mod player_list; pub mod player_list;
pub mod player_textures; pub mod player_textures;
#[allow(dead_code)] #[allow(dead_code)]
mod protocol; pub mod protocol;
pub mod server; pub mod server;
mod slab; mod slab;
mod slab_rc; mod slab_rc;