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>;
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord)] #[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord)]
#[repr(transparent)] #[repr(transparent)]
pub(crate) struct ResultCode(pub i32); pub(crate) struct ResultCode(pub ctru_sys::Result);
impl Try for ResultCode { impl Try for ResultCode {
type Output = (); type Output = ();

Loading…
Cancel
Save