Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/walkdir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2020-01-11 21:38:37 +0300
committerAndrew Gallant <jamslam@gmail.com>2020-01-11 21:39:17 +0300
commited87b1ee2157cb6e9ff91a403d19ca2ef70bad13 (patch)
tree942f542f328866c17ac513bf534aacf701abada5 /src/error.rs
parentc584a1d56c5f4b64019e1a4d70c5355e3212cc9b (diff)
edition: switch to Rust 2018
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index a86015e..3fb619c 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -3,7 +3,7 @@ use std::fmt;
use std::io;
use std::path::{Path, PathBuf};
-use DirEntry;
+use crate::DirEntry;
/// An error produced by recursively walking a directory.
///
@@ -221,7 +221,7 @@ impl error::Error for Error {
}
impl fmt::Display for Error {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self.inner {
ErrorInner::Io { path: None, ref err } => err.fmt(f),
ErrorInner::Io { path: Some(ref path), ref err } => write!(