Browse Source

use ``ctru_sys::Result`` instead of ``i32``

pull/74/head
TechiePi 2 years ago
parent
commit
088ff85cff
  1. 2
      ctru-rs/src/error.rs

2
ctru-rs/src/error.rs

@ -9,7 +9,7 @@ pub type Result<T> = ::std::result::Result<T, Error>; @@ -9,7 +9,7 @@ pub type Result<T> = ::std::result::Result<T, Error>;
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord)]
#[repr(transparent)]
pub(crate) struct ResultCode(pub i32);
pub(crate) struct ResultCode(pub ctru_sys::Result);
impl Try for ResultCode {
type Output = ();

Loading…
Cancel
Save