diff --git a/src/bin/kawari-world.rs b/src/bin/kawari-world.rs index 414b853..ad0a94e 100644 --- a/src/bin/kawari-world.rs +++ b/src/bin/kawari-world.rs @@ -574,7 +574,7 @@ async fn client_loop( * This is reset -after- running the command intentionally. Resetting beforehand will never display the command's identifier. */ let command_sender: Result = lua.globals().get("command_sender"); - if let Ok(_) = command_sender { + if command_sender.is_ok() { lua.globals().set("command_sender", mlua::Value::Nil)?; } Ok(()) @@ -674,7 +674,7 @@ async fn client_loop( * This is reset -after- running the command intentionally. Resetting beforehand will never display the command's identifier. */ let command_sender: Result = lua.globals().get("command_sender"); - if let Ok(_) = command_sender { + if command_sender.is_ok() { lua.globals().set("command_sender", mlua::Value::Nil)?; } Ok(())