Browse Source

fix apt mutability requirements

pull/161/head
Lena 10 months ago
parent
commit
cc2e535e96
No known key found for this signature in database
GPG Key ID: 5A940B96C2DA3683
  1. 4
      ctru-rs/src/services/apt.rs

4
ctru-rs/src/services/apt.rs

@ -97,7 +97,7 @@ impl Apt { @@ -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 { @@ -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() }
}

Loading…
Cancel
Save