Chore(Warnings): Silence Unused Enum Warnings

This commit is contained in:
Tochukwu Nkemdilim
2018-11-11 01:56:16 +01:00
parent 0b0d80cc86
commit 64e6091a7e
3 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -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:
<br>
<a href="https://www.buymeacoffee.com/tnkemdilim" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
+2
View File
@@ -16,6 +16,7 @@ pub struct HotspotConfig {
channel: Option<Channel>,
}
#[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 {
+1 -1
View File
@@ -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 {