Browse Source

run cargo fmt

pull/140/head
Lena 9 months ago
parent
commit
b3f37d107f
No known key found for this signature in database
GPG Key ID: 5A940B96C2DA3683
  1. 6
      ctru-rs/src/services/ac.rs

6
ctru-rs/src/services/ac.rs

@ -32,7 +32,8 @@ impl Ac { @@ -32,7 +32,8 @@ impl Ac {
#[doc(alias = "acInit")]
pub fn new() -> crate::Result<Ac> {
Ok(Ac {
_service_handler: ServiceReference::new(&AC_ACTIVE,
_service_handler: ServiceReference::new(
&AC_ACTIVE,
|| {
ResultCode(unsafe { ctru_sys::acInit() })?;
@ -40,7 +41,8 @@ impl Ac { @@ -40,7 +41,8 @@ impl Ac {
},
|| unsafe {
ctru_sys::acExit();
},)?
},
)?,
})
}

Loading…
Cancel
Save