diff --git a/src/hotspot/mod.rs b/src/hotspot/mod.rs index 4fdb61e..815d345 100644 --- a/src/hotspot/mod.rs +++ b/src/hotspot/mod.rs @@ -7,14 +7,15 @@ use std::fmt; /// Error that might occur when interacting managing wireless hotspot. #[derive(Debug)] pub enum WifiHotspotError { - /// Failed to ceate wireless hotspot. - #[cfg(target_os = "linux")] - #[cfg(target_os = "windows")] + /// Failed to ceate wireless hotspot.s + #[cfg(any(target_os = "windows", target_os = "linux"))] CreationFailed, + /// Failed to stop wireless hotspot service. Try turning off /// the wireless interface via ```wifi.turn_off()```. #[cfg(target_os = "linux")] FailedToStop(std::io::Error), + /// A wireless interface error occurred. Other { kind: WifiError }, } diff --git a/src/hotspot/providers/linux.rs b/src/hotspot/providers/linux.rs index 584f053..3b4d97d 100644 --- a/src/hotspot/providers/linux.rs +++ b/src/hotspot/providers/linux.rs @@ -26,8 +26,9 @@ pub enum HotspotBand { Bg, } -#[derive(Debug, Clone, Copy)] /// Channel to broadcast wireless hotspot on. +#[allow(dead_code)] +#[derive(Debug, Clone, Copy)] pub enum Channel { /// Channel 1 One = 1,