From c121d94f0b27bc04ffbdca55cd0939c1401d5a2e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 27 Jan 2025 15:26:00 +0100 Subject: clippy: fixes and ignores --- client/src/state.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'client/src/state.rs') diff --git a/client/src/state.rs b/client/src/state.rs index b260c9e..c39e13a 100644 --- a/client/src/state.rs +++ b/client/src/state.rs @@ -166,16 +166,14 @@ impl<'a> State<'a> { while let Some(p) = self.audio.pop_output() { self.network.packet_send.send(Packet::Sound(ob, Data(p)))?; } - } else { - if let Some(res) = self.prefab_index.0.get("avatar_test") { - info!("found avatar resource {res}"); - let ob = Object::new(); - self.network - .packet_send - .send(Packet::Add(ob, res.to_owned())) - .unwrap(); - self.avatar_ob = Some(ob) - } + } else if let Some(res) = self.prefab_index.0.get("avatar_test") { + info!("found avatar resource {res}"); + let ob = Object::new(); + self.network + .packet_send + .send(Packet::Add(ob, res.to_owned())) + .unwrap(); + self.avatar_ob = Some(ob) } Ok(()) -- cgit v1.2.3-70-g09d2