Browse Source

Remove deprecated trait impls for Error

pull/83/head
Andrea Ciliberti 2 years ago
parent
commit
05abdd7217
  1. 6
      ctru-rs/src/error.rs
  2. 6
      ctru-rs/src/services/ndsp/mod.rs

6
ctru-rs/src/error.rs

@ -117,11 +117,7 @@ impl fmt::Display for Error {
} }
} }
impl error::Error for Error { impl error::Error for Error {}
fn description(&self) -> &str {
"error originating from a libctru function"
}
}
fn result_code_level_str(result: ctru_sys::Result) -> Cow<'static, str> { fn result_code_level_str(result: ctru_sys::Result) -> Cow<'static, str> {
use ctru_sys::{ use ctru_sys::{

6
ctru-rs/src/services/ndsp/mod.rs

@ -293,11 +293,7 @@ impl fmt::Display for NdspError {
} }
} }
impl error::Error for NdspError { impl error::Error for NdspError {}
fn description(&self) -> &str {
"Error caused within the NDSP service wrapper"
}
}
impl<'ndsp> Drop for Channel<'ndsp> { impl<'ndsp> Drop for Channel<'ndsp> {
fn drop(&mut self) { fn drop(&mut self) {

Loading…
Cancel
Save