Chore(Refactor): Simplify Imports

This commit is contained in:
Tochukwu Nkemdilim
2021-02-07 17:58:11 +01:00
parent 9f374641ea
commit 1c86f673bc
13 changed files with 79 additions and 37 deletions
+2 -11
View File
@@ -1,8 +1,5 @@
extern crate wifi_rs;
use std::io;
use wifi_rs::WiFi;
use wifi_rs::prelude::*;
use wifi_rs::{prelude::*, WiFi};
fn main() -> Result<(), io::Error> {
let config = Some(Config {
@@ -12,13 +9,7 @@ fn main() -> Result<(), io::Error> {
let mut wifi = WiFi::new(config);
let config = HotspotConfig::new(Some(HotspotBand::Bg), Some(Channel::One));
wifi.create_hotspot(
"test-hotspot",
"password",
Some(
&config
)
);
wifi.create_hotspot("test-hotspot", "password", Some(&config));
Ok(())
}