From cc2e535e9655c81cb451837c8f3d029c6223ec8a Mon Sep 17 00:00:00 2001 From: Lena Date: Sat, 17 Feb 2024 16:44:18 +0100 Subject: [PATCH] fix apt mutability requirements --- ctru-rs/src/services/apt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctru-rs/src/services/apt.rs b/ctru-rs/src/services/apt.rs index 09892df..2a3b7fb 100644 --- a/ctru-rs/src/services/apt.rs +++ b/ctru-rs/src/services/apt.rs @@ -97,7 +97,7 @@ impl Apt { /// /// You can set whether the console is allowed to sleep with [Apt::set_sleep_allowed]. #[doc(alias = "aptIsSleepAllowed")] - pub fn is_sleep_allowed(&mut self) -> bool { + pub fn is_sleep_allowed(&self) -> bool { unsafe { ctru_sys::aptIsSleepAllowed() } } @@ -115,7 +115,7 @@ impl Apt { /// /// You can set whether the console is allowed to enter the home menu with [Apt::set_home_allowed]. #[doc(alias = "aptIsHomeAllowed")] - pub fn is_home_allowed(&mut self) -> bool { + pub fn is_home_allowed(&self) -> bool { unsafe { ctru_sys::aptIsHomeAllowed() } }