Skip to content

Commit

Permalink
auto implement from on the network security enum
Browse files Browse the repository at this point in the history
i don't know how this didn't work before, but it now does, i guess
  • Loading branch information
adryzz committed Oct 30, 2023
1 parent d93cfd8 commit bf82101
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ctru-rs/src/services/ac.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
//! The Automatic Connection (AC) service handles Wi-Fi and network settings.
//! It can:
//! - Connect to a network or slot
//! - Get information about a network, such as its SSID or security settings
use crate::error::ResultCode;

/// Handle to the AC service, that handles Wi-Fi and network settings.
/// Handle to the Automatic Connection (AC) service, that handles Wi-Fi and network settings.
pub struct Ac(());

impl Ac {
Expand Down Expand Up @@ -328,6 +332,8 @@ pub enum SecurityMode {
WPA2_AES = ctru_sys::AC_WPA2_AES,

Check warning on line 332 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)]
Expand Down

0 comments on commit bf82101

Please sign in to comment.