From b3f37d107f3e6d730250e1c8d7cd3d6a36f68956 Mon Sep 17 00:00:00 2001 From: Lena Date: Thu, 28 Mar 2024 14:43:42 +0100 Subject: [PATCH] run cargo fmt --- ctru-rs/src/services/ac.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ctru-rs/src/services/ac.rs b/ctru-rs/src/services/ac.rs index e2a08a5..74fd8ee 100644 --- a/ctru-rs/src/services/ac.rs +++ b/ctru-rs/src/services/ac.rs @@ -32,15 +32,17 @@ impl Ac { #[doc(alias = "acInit")] pub fn new() -> crate::Result { Ok(Ac { - _service_handler: ServiceReference::new(&AC_ACTIVE, + _service_handler: ServiceReference::new( + &AC_ACTIVE, || { ResultCode(unsafe { ctru_sys::acInit() })?; - + Ok(()) }, || unsafe { ctru_sys::acExit(); - },)? + }, + )?, }) }