about summary refs log tree commit diff
path: root/clippy_dev
diff options
context:
space:
mode:
authorJakub Wieczorek <jakub.adam.wieczorek@gmail.com>2019-07-31 00:25:35 +0000
committerJakub Wieczorek <jakub.adam.wieczorek@gmail.com>2019-07-31 08:50:43 +0000
commit2a13e83f2baafed62db958aa202666a4182c4fb5 (patch)
tree81be9147660b7fb8a8d56fceee4c97f5de20c54d /clippy_dev
parent41110b0039aca086216f675e148effc68b15bf1d (diff)
downloadrust-2a13e83f2baafed62db958aa202666a4182c4fb5.tar.gz
rust-2a13e83f2baafed62db958aa202666a4182c4fb5.zip
Update all the code to pass the updated `use_self` lint.
One struct required a temporary `#[allow(dead_code)]` annotation due to
a bug in the Rust compiler: https://github.com/rust-lang/rust/issues/63151.
Diffstat (limited to 'clippy_dev')
-rw-r--r--clippy_dev/src/fmt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_dev/src/fmt.rs b/clippy_dev/src/fmt.rs
index 5ccdbec1428..e23673f275d 100644
--- a/clippy_dev/src/fmt.rs
+++ b/clippy_dev/src/fmt.rs
@@ -15,13 +15,13 @@ pub enum CliError {
 
 impl From<io::Error> for CliError {
     fn from(error: io::Error) -> Self {
-        CliError::IoError(error)
+        Self::IoError(error)
     }
 }
 
 impl From<walkdir::Error> for CliError {
     fn from(error: walkdir::Error) -> Self {
-        CliError::WalkDirError(error)
+        Self::WalkDirError(error)
     }
 }