Skip to content

Commit

Permalink
fix syntax error in doctest - how was this missing?
Browse files Browse the repository at this point in the history
  • Loading branch information
adryzz committed Oct 30, 2023
1 parent bf82101 commit 8045515
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions ctru-rs/src/services/ac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
/// # }
Expand Down Expand Up @@ -272,7 +272,6 @@ impl Ac {
}
}

/*
/// Load the selected network slot, if present.
///
/// Note: this method requires `ac:i` access
Expand All @@ -298,7 +297,7 @@ impl Ac {
ResultCode(ctru_sys::ACI_LoadNetworkSetting(slot as u32))?;

Check failure on line 297 in ctru-rs/src/services/ac.rs

View workflow job for this annotation

GitHub Actions / lint (nightly-2023-06-01)

cannot find function, tuple struct or tuple variant `ACI_LoadNetworkSetting` in crate `ctru_sys`
Ok(())
}
}*/
}
}

impl Drop for Ac {
Expand Down Expand Up @@ -332,14 +331,12 @@ pub enum SecurityMode {
WPA2_AES = ctru_sys::AC_WPA2_AES,

Check warning on line 331 in ctru-rs/src/services/ac.rs

View workflow job for this annotation

GitHub Actions / lint (nightly-2023-06-01)

variant `WPA2_AES` should have an upper camel case name
}

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);

0 comments on commit 8045515

Please sign in to comment.