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. 8
      ctru-rs/src/services/ac.rs

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

@ -32,15 +32,17 @@ impl Ac { @@ -32,15 +32,17 @@ 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() })?;
Ok(())
},
|| unsafe {
ctru_sys::acExit();
},)?
},
)?,
})
}

Loading…
Cancel
Save