From 2638c9c66fd267f99983744fb432ba3bc630b956 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Fri, 17 Feb 2023 16:54:16 +0100 Subject: [PATCH] Fix lints --- ctru-rs/src/services/cam.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctru-rs/src/services/cam.rs b/ctru-rs/src/services/cam.rs index c4c7737..43ecbc9 100644 --- a/ctru-rs/src/services/cam.rs +++ b/ctru-rs/src/services/cam.rs @@ -776,7 +776,7 @@ pub trait Camera { )); // We close everything first, then we check for possible errors - ResultCode(ctru_sys::svcCloseHandle(receive_event)); + let _ = ctru_sys::svcCloseHandle(receive_event); // We wouldn't return the error even if there was one, so no use of ResultCode is needed ResultCode(ctru_sys::CAMU_StopCapture(self.port_as_raw()))?; ResultCode(ctru_sys::CAMU_Activate(ctru_sys::SELECT_NONE))?;