From a32d79f4ff530c09b3a130b6e899ca9d8ab72741 Mon Sep 17 00:00:00 2001 From: Lena Date: Sat, 25 Nov 2023 12:18:17 +0100 Subject: [PATCH] add more docs and fix camel case warning --- ctru-rs/src/services/ac.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ctru-rs/src/services/ac.rs b/ctru-rs/src/services/ac.rs index 433ac476..37dfc605 100644 --- a/ctru-rs/src/services/ac.rs +++ b/ctru-rs/src/services/ac.rs @@ -311,6 +311,7 @@ impl Drop for Ac { #[derive(Debug, Clone, Copy, PartialEq, Eq)] #[repr(u32)] #[non_exhaustive] +#[allow(non_camel_case_types)] /// Represents all the supported Wi-Fi security modes. pub enum SecurityMode { /// No authentication @@ -333,9 +334,13 @@ pub enum SecurityMode { #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] #[repr(u32)] +/// Represents a network slot, like in the System Settings pub enum NetworkSlot { + /// The first network slot First = 0, + /// The second network slot Second = 1, + /// The third network slot Third = 2, }