From 01e9c7062972ba888d02f8ddb7bfd938039b560c Mon Sep 17 00:00:00 2001 From: TechiePi Date: Wed, 2 Nov 2022 21:20:46 +0100 Subject: [PATCH] Address comments --- ctru-rs/src/applets/mii_selector.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ctru-rs/src/applets/mii_selector.rs b/ctru-rs/src/applets/mii_selector.rs index fef106b..d324055 100644 --- a/ctru-rs/src/applets/mii_selector.rs +++ b/ctru-rs/src/applets/mii_selector.rs @@ -158,16 +158,14 @@ impl MiiSelector { impl From for MiiSelectorReturn { fn from(ret: ctru_sys::MiiSelectorReturn) -> Self { let raw_mii_data = ret.mii; - let no_mii_selected = ret.no_mii_selected; - let guest_mii_index_clone = ret.guest_mii_index; let mut guest_mii_name = ret.guest_mii_name; MiiSelectorReturn { mii_data: raw_mii_data.into(), - is_mii_selected: no_mii_selected == 0, - mii_type: if guest_mii_index_clone != 0xFFFFFFFF { + is_mii_selected: ret.no_mii_selected == 0, + mii_type: if ret.guest_mii_index != 0xFFFFFFFF { MiiType::Guest { - index: guest_mii_index_clone, + index: ret.guest_mii_index, name: { let utf16_be = &mut guest_mii_name; utf16_be.reverse();