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. 12
      ctru-rs/src/services/apt.rs

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

@ -98,9 +98,7 @@ impl Apt {
/// You can set whether the console is allowed to sleep with [Apt::set_sleep_allowed]. /// You can set whether the console is allowed to sleep with [Apt::set_sleep_allowed].
#[doc(alias = "aptIsSleepAllowed")] #[doc(alias = "aptIsSleepAllowed")]
pub fn is_sleep_allowed(&mut self) -> bool { pub fn is_sleep_allowed(&mut self) -> bool {
unsafe { unsafe { ctru_sys::aptIsSleepAllowed() }
ctru_sys::aptIsSleepAllowed()
}
} }
/// Set if the console is allowed to enter the home menu. /// Set if the console is allowed to enter the home menu.
@ -118,17 +116,13 @@ impl Apt {
/// You can set whether the console is allowed to enter the home menu with [Apt::set_home_allowed]. /// You can set whether the console is allowed to enter the home menu with [Apt::set_home_allowed].
#[doc(alias = "aptIsHomeAllowed")] #[doc(alias = "aptIsHomeAllowed")]
pub fn is_home_allowed(&mut self) -> bool { pub fn is_home_allowed(&mut self) -> bool {
unsafe { unsafe { ctru_sys::aptIsHomeAllowed() }
ctru_sys::aptIsHomeAllowed()
}
} }
/// Immediately jumps to the home menu. /// Immediately jumps to the home menu.
#[doc(alias = "aptIsHomeAllowed")] #[doc(alias = "aptIsHomeAllowed")]
pub fn jump_to_home_menu(&mut self) { pub fn jump_to_home_menu(&mut self) {
unsafe { unsafe { ctru_sys::aptJumpToHomeMenu() }
ctru_sys::aptJumpToHomeMenu()
}
} }
} }

Loading…
Cancel
Save