From d5ae6419aa04a8609ca0095322e9767fda0743ee Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Wed, 22 Nov 2023 21:02:35 +0100 Subject: [PATCH] Fmt --- ctru-rs/examples/ir-user.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ctru-rs/examples/ir-user.rs b/ctru-rs/examples/ir-user.rs index 075569b..a8141d0 100644 --- a/ctru-rs/examples/ir-user.rs +++ b/ctru-rs/examples/ir-user.rs @@ -195,7 +195,9 @@ impl<'screen> CirclePadProDemo<'screen> { fn handle_packets(&self) { let packets = self.ir_user.get_packets(); let packet_count = packets.len(); - let Some(last_packet) = packets.last() else { return }; + let Some(last_packet) = packets.last() else { + return; + }; // Use a buffer to avoid flickering the screen (write all output at once) let mut output_buffer = Vec::with_capacity(0x1000);