From 05abdd7217e458ab703e8aadca3d0fa5a74dbc52 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Tue, 17 Jan 2023 14:44:32 +0100 Subject: [PATCH] Remove deprecated trait impls for Error --- ctru-rs/src/error.rs | 6 +----- ctru-rs/src/services/ndsp/mod.rs | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) 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) {