diff --git a/ctru-rs/src/error.rs b/ctru-rs/src/error.rs index 18fd175..bdd2d2e 100644 --- a/ctru-rs/src/error.rs +++ b/ctru-rs/src/error.rs @@ -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::{ diff --git a/ctru-rs/src/services/ndsp/mod.rs b/ctru-rs/src/services/ndsp/mod.rs index c9dec99..a548259 100644 --- a/ctru-rs/src/services/ndsp/mod.rs +++ b/ctru-rs/src/services/ndsp/mod.rs @@ -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) {