Browse Source

Fix some result codes not getting recognized as errors

pull/129/head
AzureMarker 2 years ago committed by Mark Drobnak
parent
commit
d1deb60f36
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3
  1. 2
      ctru-rs/src/error.rs

2
ctru-rs/src/error.rs

@ -21,7 +21,7 @@ impl Try for ResultCode { @@ -21,7 +21,7 @@ impl Try for ResultCode {
}
fn branch(self) -> ControlFlow<Self::Residual, Self::Output> {
if self.0 < 0 {
if self.0 != 0 {
ControlFlow::Break(self.into())
} else {
ControlFlow::Continue(())

Loading…
Cancel
Save