Skip to content

Commit e1e2477

Browse files
committed
start migration to edition 2018
1 parent 722e0f3 commit e1e2477

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

examples/overlay_readonly.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
extern crate libmount;
2-
extern crate argparse;
3-
extern crate env_logger;
4-
#[macro_use] extern crate log;
1+
use libmount;
2+
use argparse;
3+
use env_logger;
4+
use log::error;
55

66
use std::path::PathBuf;
77
use std::process::exit;

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::io;
22
use std::fmt;
33
use std::error::Error as StdError;
44

5-
use {OSError, Error, MountError};
5+
use crate::{OSError, Error, MountError};
66
use remount::RemountError;
77

88
impl OSError {

src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
#![warn(missing_debug_implementations)]
2323
#![warn(missing_docs)]
2424

25-
extern crate libc;
26-
extern crate nix;
27-
extern crate fs_err;
28-
2925
mod util;
3026
mod error;
3127
mod explain;
@@ -39,12 +35,11 @@ pub mod mountinfo;
3935
use std::io;
4036

4137
use explain::Explainable;
42-
use remount::RemountError;
4338
pub use bind::BindMount;
4439
pub use overlay::Overlay;
4540
pub use tmpfs::Tmpfs;
4641
pub use modify::Move;
47-
pub use remount::Remount;
42+
pub use remount::{Remount,RemountError};
4843

4944
#[derive(Debug, thiserror::Error)]
5045
#[allow(missing_docs)]

0 commit comments

Comments
 (0)