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))?;