Browse Source

cargo fmt

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

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

@ -98,9 +98,7 @@ impl Apt { @@ -98,9 +98,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 {
unsafe {
ctru_sys::aptIsSleepAllowed()
}
unsafe { ctru_sys::aptIsSleepAllowed() }
}
/// Set if the console is allowed to enter the home menu.
@ -114,21 +112,17 @@ impl Apt { @@ -114,21 +112,17 @@ impl Apt {
}
/// Check if the console is allowed to enter the home menu.
///
///
/// 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 {
unsafe {
ctru_sys::aptIsHomeAllowed()
}
unsafe { ctru_sys::aptIsHomeAllowed() }
}
/// Immediately jumps to the home menu.
#[doc(alias = "aptIsHomeAllowed")]
pub fn jump_to_home_menu(&mut self) {
unsafe {
ctru_sys::aptJumpToHomeMenu()
}
unsafe { ctru_sys::aptJumpToHomeMenu() }
}
}

Loading…
Cancel
Save