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

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

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

Loading…
Cancel
Save