about summary refs log tree commit diff
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-10-24 11:55:22 +0200
committerflip1995 <hello@philkrones.com>2019-10-24 11:55:22 +0200
commitef02e3a755150085aa30b379ce06ce93d74a9d52 (patch)
tree9f0f0f182277b9910e5a697c5102f43d2373d4d1
parent5f4b5b91d7e262a2ac5c13dc21b0d005e8360046 (diff)
downloadrust-ef02e3a755150085aa30b379ce06ce93d74a9d52.tar.gz
rust-ef02e3a755150085aa30b379ce06ce93d74a9d52.zip
Run ./util/dev fmt
-rw-r--r--clippy_dev/src/main.rs6
-rw-r--r--clippy_lints/src/lib.rs6
-rw-r--r--clippy_lints/src/trivially_copy_pass_by_ref.rs2
3 files changed, 7 insertions, 7 deletions
diff --git a/clippy_dev/src/main.rs b/clippy_dev/src/main.rs
index f088504f5cd..79ec5120af9 100644
--- a/clippy_dev/src/main.rs
+++ b/clippy_dev/src/main.rs
@@ -67,7 +67,7 @@ fn main() {
     match matches.subcommand() {
         ("fmt", Some(matches)) => {
             fmt::run(matches.is_present("check"), matches.is_present("verbose"));
-        }
+        },
         ("update_lints", Some(matches)) => {
             if matches.is_present("print-only") {
                 print_lints();
@@ -76,8 +76,8 @@ fn main() {
             } else {
                 update_lints(&UpdateMode::Change);
             }
-        }
-        _ => {}
+        },
+        _ => {},
     }
 }
 
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs
index 3512972c55e..0cc3a2cd0db 100644
--- a/clippy_lints/src/lib.rs
+++ b/clippy_lints/src/lib.rs
@@ -332,7 +332,7 @@ pub fn read_conf(args: &[syntax::ast::NestedMetaItem], sess: &Session) -> Conf {
                         sess.struct_err(&format!("error finding Clippy's configuration file: {}", error))
                             .emit();
                         None
-                    }
+                    },
                 }
             };
 
@@ -361,13 +361,13 @@ pub fn read_conf(args: &[syntax::ast::NestedMetaItem], sess: &Session) -> Conf {
             }
 
             conf
-        }
+        },
         Err((err, span)) => {
             sess.struct_span_err(span, err)
                 .span_note(span, "Clippy will use default configuration")
                 .emit();
             toml::from_str("").expect("we never error on empty config files")
-        }
+        },
     }
 }
 
diff --git a/clippy_lints/src/trivially_copy_pass_by_ref.rs b/clippy_lints/src/trivially_copy_pass_by_ref.rs
index a5617f781a6..649b50e90de 100644
--- a/clippy_lints/src/trivially_copy_pass_by_ref.rs
+++ b/clippy_lints/src/trivially_copy_pass_by_ref.rs
@@ -160,7 +160,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TriviallyCopyPassByRef {
                         return;
                     }
                 }
-            }
+            },
             FnKind::Method(..) => (),
             _ => return,
         }