aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/tests
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-05-30 19:36:59 -0800
committermat <git@matdoes.dev>2025-05-30 19:36:59 -0800
commitae4b1e85e669bc882d158509ef1eda46c6b2a72e (patch)
treeadf81cc01b0ce1575e95b99ad109fd92db1738f6 /azalea-client/tests
parenta64c6505049082175224802c5be51ac8f0cf4677 (diff)
downloadazalea-drasl-ae4b1e85e669bc882d158509ef1eda46c6b2a72e.tar.xz
fix clippy issues and improve formatting everywhere
Diffstat (limited to 'azalea-client/tests')
-rw-r--r--azalea-client/tests/reply_to_ping_with_pong.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/azalea-client/tests/reply_to_ping_with_pong.rs b/azalea-client/tests/reply_to_ping_with_pong.rs
index d921c905..bc8bccd4 100644
--- a/azalea-client/tests/reply_to_ping_with_pong.rs
+++ b/azalea-client/tests/reply_to_ping_with_pong.rs
@@ -28,11 +28,11 @@ fn reply_to_ping_with_pong() {
simulation
.app
.add_observer(move |trigger: Trigger<SendConfigPacketEvent>| {
- if trigger.sent_by == simulation.entity {
- if let ServerboundConfigPacket::Pong(packet) = &trigger.packet {
- assert_eq!(packet.id, 321);
- *reply_count_clone.lock() += 1;
- }
+ if trigger.sent_by == simulation.entity
+ && let ServerboundConfigPacket::Pong(packet) = &trigger.packet
+ {
+ assert_eq!(packet.id, 321);
+ *reply_count_clone.lock() += 1;
}
});
@@ -63,11 +63,11 @@ fn reply_to_ping_with_pong() {
simulation
.app
.add_observer(move |trigger: Trigger<SendPacketEvent>| {
- if trigger.sent_by == simulation.entity {
- if let ServerboundGamePacket::Pong(packet) = &trigger.packet {
- assert_eq!(packet.id, 123);
- *reply_count_clone.lock() += 1;
- }
+ if trigger.sent_by == simulation.entity
+ && let ServerboundGamePacket::Pong(packet) = &trigger.packet
+ {
+ assert_eq!(packet.id, 123);
+ *reply_count_clone.lock() += 1;
}
});