Skip to content

Commit

Permalink
start migration to edition 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Nov 18, 2020
1 parent 722e0f3 commit e1e2477
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
8 changes: 4 additions & 4 deletions examples/overlay_readonly.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extern crate libmount;
extern crate argparse;
extern crate env_logger;
#[macro_use] extern crate log;
use libmount;
use argparse;
use env_logger;
use log::error;

use std::path::PathBuf;
use std::process::exit;
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::io;
use std::fmt;
use std::error::Error as StdError;

use {OSError, Error, MountError};
use crate::{OSError, Error, MountError};
use remount::RemountError;

impl OSError {
Expand Down
7 changes: 1 addition & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#![warn(missing_debug_implementations)]
#![warn(missing_docs)]

extern crate libc;
extern crate nix;
extern crate fs_err;

mod util;
mod error;
mod explain;
Expand All @@ -39,12 +35,11 @@ pub mod mountinfo;
use std::io;

use explain::Explainable;
use remount::RemountError;
pub use bind::BindMount;
pub use overlay::Overlay;
pub use tmpfs::Tmpfs;
pub use modify::Move;
pub use remount::Remount;
pub use remount::{Remount,RemountError};

#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
Expand Down

0 comments on commit e1e2477

Please sign in to comment.