Chore(Warnings): Silence Unused Enum Warnings
This commit is contained in:
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user