]> git.lizzy.rs Git - rust.git/blobdiff - tests/needless_continue_helpers.rs
Auto merge of #3901 - rail-rain:issue_1670, r=flip1995
[rust.git] / tests / needless_continue_helpers.rs
index 853f64b46984ee15539571a94497f0599a2c79d5..255653b4737d3453ec371d76c8c6482deea897e4 100644 (file)
@@ -1,11 +1,10 @@
 // Tests for the various helper functions used by the needless_continue
 // lint that don't belong in utils.
 
-extern crate clippy_lints;
 use clippy_lints::needless_continue::{erode_block, erode_from_back, erode_from_front};
 
 #[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
 fn test_erode_from_back() {
     let input = "\
 {
@@ -23,7 +22,7 @@ fn test_erode_from_back() {
 }
 
 #[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
 fn test_erode_from_back_no_brace() {
     let input = "\
 let x = 5;
@@ -35,7 +34,7 @@ fn test_erode_from_back_no_brace() {
 }
 
 #[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
 fn test_erode_from_front() {
     let input = "
         {
@@ -54,7 +53,7 @@ fn test_erode_from_front() {
 }
 
 #[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
 fn test_erode_from_front_no_brace() {
     let input = "
             something();
@@ -69,9 +68,8 @@ fn test_erode_from_front_no_brace() {
     assert_eq!(expected, got);
 }
 
-
 #[test]
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[rustfmt::skip]
 fn test_erode_block() {
 
     let input = "