From 64e6091a7e2409b5791261aa4c895f39a4b37e5b Mon Sep 17 00:00:00 2001 From: Tochukwu Nkemdilim Date: Sun, 11 Nov 2018 01:56:16 +0100 Subject: [PATCH] Chore(Warnings): Silence Unused Enum Warnings --- README.md | 3 +-- src/hotspot/providers/linux.rs | 2 ++ src/main.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eba9362..567fb1d 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ fn main() -> Result<(), WifiConnectionError> { ### General - [x] Return detailed error messages. -- [ ] Write documentation. **(approx. percentage: 20%)** +- [x] Write documentation. - [ ] Update `wifi-CLI` with recent updates. - [ ] Write tests. @@ -92,4 +92,3 @@ Any feature you feel is missing, why not send in a Pull Request, and let's help Love this project, please feel free to buy me a coffee below:
Buy Me A Coffee - diff --git a/src/hotspot/providers/linux.rs b/src/hotspot/providers/linux.rs index 4913b7b..123b973 100644 --- a/src/hotspot/providers/linux.rs +++ b/src/hotspot/providers/linux.rs @@ -16,6 +16,7 @@ pub struct HotspotConfig { channel: Option, } +#[allow(dead_code)] #[derive(Debug)] /// Band type of wireless hotspot. pub enum HotspotBand { @@ -25,6 +26,7 @@ pub enum HotspotBand { Bg, } +#[allow(dead_code)] #[derive(Debug, Clone, Copy)] /// Channel to broadcast wireless hotspot on. pub enum Channel { diff --git a/src/main.rs b/src/main.rs index 66197f4..194b90c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ fn main() -> Result<(), WifiConnectionError> { let mut wifi = WiFi::new(config); - match wifi.connect("AndroidAPSD22", "belm4235") { + match wifi.connect("CSIS_MH", "") { Ok(result) => println!( "{}", if result == true {