From 55ed7cc5f88156bd8b3539456ec32ac389f3c28d Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Fri, 31 Mar 2023 14:35:57 +0200 Subject: [PATCH] Fix enum conversion --- ctru-rs/src/applets/swkbd.rs | 27 +++---------------- ctru-rs/src/lib.rs | 40 ++++++++++++++++++++++++++++ ctru-rs/src/services/am.rs | 8 +++--- ctru-rs/src/services/cam.rs | 33 +++++++++++++++-------- ctru-rs/src/services/cfgu.rs | 10 ------- ctru-rs/src/services/fs.rs | 45 +++----------------------------- ctru-rs/src/services/gfx.rs | 9 +------ ctru-rs/src/services/gspgpu.rs | 31 ++-------------------- ctru-rs/src/services/ndsp/mod.rs | 10 ++++--- ctru-rs/src/services/ps.rs | 3 +++ 10 files changed, 86 insertions(+), 130 deletions(-) diff --git a/ctru-rs/src/applets/swkbd.rs b/ctru-rs/src/applets/swkbd.rs index bc2553a..0d77fc2 100644 --- a/ctru-rs/src/applets/swkbd.rs +++ b/ctru-rs/src/applets/swkbd.rs @@ -213,26 +213,7 @@ impl Default for Swkbd { } } -impl From for u32 { - fn from(value: Kind) -> Self { - value as u32 - } -} - -impl From