Fix target os for macos. Add missing imports.

This commit is contained in:
Phoenix Chen
2019-09-14 08:51:01 -07:00
parent adb79c396d
commit 15b05c78d4
6 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -4,13 +4,13 @@ mod windows;
#[cfg(target_os = "linux")]
mod linux;
#[cfg(target_os = "osx")]
#[cfg(target_os = "macos")]
mod osx;
pub mod prelude {
#[cfg(target_os = "linux")]
pub use super::linux::*;
#[cfg(target_os = "osx")]
#[cfg(target_os = "macos")]
pub use super::osx::*;
#[cfg(target_os = "windows")]
pub use super::windows::*;
+1
View File
@@ -1,3 +1,4 @@
use hotspot::{WifiHotspot, WifiHotspotError};
use connectivity::{Connectivity, WifiConnectionError};
use platforms::WiFi;
use std::process::Command;