From 8045515ec7450e5cfd1f7527ce04bcdcb3a98dda Mon Sep 17 00:00:00 2001 From: Lena Date: Mon, 30 Oct 2023 22:38:39 +0100 Subject: [PATCH] fix syntax error in doctest - how was this missing? --- ctru-rs/src/services/ac.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/ctru-rs/src/services/ac.rs b/ctru-rs/src/services/ac.rs index aee2dbd5..433ac476 100644 --- a/ctru-rs/src/services/ac.rs +++ b/ctru-rs/src/services/ac.rs @@ -132,7 +132,7 @@ impl Ac { /// /// let ac = Ac::new()?; /// - /// println!("The console is connected to the network \"{}\"", ac.get_wifi_ssid().unwrap()) + /// println!("The console is connected to the network \"{}\"", ac.get_wifi_ssid().unwrap()); /// # /// # Ok(()) /// # } @@ -272,7 +272,6 @@ impl Ac { } } - /* /// Load the selected network slot, if present. /// /// Note: this method requires `ac:i` access @@ -298,7 +297,7 @@ impl Ac { ResultCode(ctru_sys::ACI_LoadNetworkSetting(slot as u32))?; Ok(()) } - }*/ + } } impl Drop for Ac { @@ -332,14 +331,12 @@ pub enum SecurityMode { WPA2_AES = ctru_sys::AC_WPA2_AES, } -from_impl!(SecurityMode, ctru_sys::acSecurityMode); - -/* #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] #[repr(u32)] pub enum NetworkSlot { First = 0, Second = 1, - Third = 2 + Third = 2, } -*/ + +from_impl!(SecurityMode, ctru_sys::acSecurityMode);