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
+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 {