Feat(Rustc2018): Support Rust 2018
This commit is contained in:
@@ -4,7 +4,7 @@ mod providers;
|
||||
#[cfg(target_os = "windows")]
|
||||
mod stubs;
|
||||
|
||||
use platforms::WifiError;
|
||||
use crate::platforms::WifiError;
|
||||
use std::{fmt, io};
|
||||
|
||||
/// Wireless network connectivity functionality.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use connectivity::{Connectivity, WifiConnectionError};
|
||||
use platforms::{Connection, WiFi, WifiError, WifiInterface};
|
||||
use crate::connectivity::{Connectivity, WifiConnectionError};
|
||||
use crate::platforms::{Connection, WiFi, WifiError, WifiInterface};
|
||||
use std::process::Command;
|
||||
|
||||
/// Wireless network connectivity functionality.
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
mod providers;
|
||||
|
||||
use self::providers::prelude::HotspotConfig;
|
||||
use platforms::{WifiError, WifiInterface};
|
||||
use crate::platforms::{WifiError, WifiInterface};
|
||||
use std::{fmt, io};
|
||||
|
||||
/// Error that might occur when interacting managing wireless hotspot.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use hotspot::{WifiHotspot, WifiHotspotError};
|
||||
use platforms::WiFi;
|
||||
use crate::hotspot::{WifiHotspot, WifiHotspotError};
|
||||
use crate::platforms::WiFi;
|
||||
use std::fmt;
|
||||
use std::process::Command;
|
||||
|
||||
|
||||
+4
-4
@@ -8,9 +8,9 @@ mod platforms;
|
||||
|
||||
/// Pre-requisite module for `Connectivity`, `Hotspot` functionality.
|
||||
pub mod prelude {
|
||||
pub use connectivity::*;
|
||||
pub use hotspot::*;
|
||||
pub use platforms::Config;
|
||||
pub use crate::connectivity::*;
|
||||
pub use crate::hotspot::*;
|
||||
pub use crate::platforms::Config;
|
||||
}
|
||||
|
||||
pub use platforms::WiFi;
|
||||
pub use crate::platforms::WiFi;
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@ mod connectivity;
|
||||
mod hotspot;
|
||||
mod platforms;
|
||||
|
||||
use connectivity::{Connectivity, WifiConnectionError};
|
||||
use platforms::{Config, WiFi};
|
||||
use crate::connectivity::{Connectivity, WifiConnectionError};
|
||||
use crate::platforms::{Config, WiFi};
|
||||
|
||||
fn main() -> Result<(), WifiConnectionError> {
|
||||
let config = Some(Config {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use platforms::{Config, WifiError, WifiInterface};
|
||||
use crate::platforms::{Config, WifiError, WifiInterface};
|
||||
use std::process::Command;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
||||
Reference in New Issue
Block a user