Browse Source

Fix lints

pull/94/head
Andrea Ciliberti 2 years ago
parent
commit
2638c9c66f
  1. 2
      ctru-rs/src/services/cam.rs

2
ctru-rs/src/services/cam.rs

@ -776,7 +776,7 @@ pub trait Camera { @@ -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))?;

Loading…
Cancel
Save