From 2953ae0702c103dc9e0ca6c7509ebc8a5e89e9f0 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 27 Nov 2018 21:11:50 +0100 Subject: [PATCH] Run rustfmt on the tests --- tests/compile-test.rs | 1 - tests/dogfood.rs | 1 - tests/matches.rs | 3 +-- tests/needless_continue_helpers.rs | 3 --- tests/versioncheck.rs | 1 - 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/compile-test.rs b/tests/compile-test.rs index 64360af641b..5cb37b6b6fd 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -7,7 +7,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - #![feature(test)] extern crate compiletest_rs as compiletest; diff --git a/tests/dogfood.rs b/tests/dogfood.rs index dcbfa90e611..e8f7a080c95 100644 --- a/tests/dogfood.rs +++ b/tests/dogfood.rs @@ -7,7 +7,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - #[test] fn dogfood() { if option_env!("RUSTC_TEST_SUITE").is_some() || cfg!(windows) { diff --git a/tests/matches.rs b/tests/matches.rs index 99b05e50c9f..fb5dbf5d84d 100644 --- a/tests/matches.rs +++ b/tests/matches.rs @@ -7,7 +7,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - #![feature(rustc_private)] extern crate clippy_lints; @@ -16,8 +15,8 @@ use std::collections::Bound; #[test] fn test_overlapping() { - use clippy_lints::matches::overlapping; use crate::syntax::source_map::DUMMY_SP; + use clippy_lints::matches::overlapping; let sp = |s, e| clippy_lints::matches::SpannedRange { span: DUMMY_SP, diff --git a/tests/needless_continue_helpers.rs b/tests/needless_continue_helpers.rs index 662ae110845..8237ac437ba 100644 --- a/tests/needless_continue_helpers.rs +++ b/tests/needless_continue_helpers.rs @@ -7,9 +7,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - - - // Tests for the various helper functions used by the needless_continue // lint that don't belong in utils. diff --git a/tests/versioncheck.rs b/tests/versioncheck.rs index 5b189a797b7..cdf97f75ec6 100644 --- a/tests/versioncheck.rs +++ b/tests/versioncheck.rs @@ -7,7 +7,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - extern crate cargo_metadata; extern crate semver; use semver::VersionReq;