Run rustfmt

This commit is contained in:
flip1995 2019-03-10 22:12:26 +01:00
parent 3282955238
commit 44c46d2059
No known key found for this signature in database
GPG Key ID: 04461221D4DFB954
4 changed files with 5 additions and 7 deletions

View File

@ -1,13 +1,12 @@
use if_chain::if_chain;
use rustc_errors::Applicability;
use rustc::hir;
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
use rustc::{declare_tool_lint, lint_array};
use rustc_errors::Applicability;
use crate::utils::{
get_trait_def_id, implements_trait, snippet_opt, span_lint_and_then, trait_ref_of_method,
SpanlessEq,
get_trait_def_id, implements_trait, snippet_opt, span_lint_and_then, trait_ref_of_method, SpanlessEq,
};
use crate::utils::{higher, sugg};

View File

@ -10,12 +10,12 @@ use syntax::ast::LitKind;
use syntax::source_map::{ExpnFormat, Span};
use crate::consts::{constant, Constant};
use crate::utils::sugg::Sugg;
use crate::utils::{
get_item_name, get_parent_expr, implements_trait, in_constant, in_macro, is_integer_literal, iter_input_pats,
last_path_segment, match_qpath, match_trait_method, paths, snippet, span_lint, span_lint_and_then, walk_ptrs_ty,
SpanlessEq,
};
use crate::utils::sugg::Sugg;
declare_clippy_lint! {
/// **What it does:** Checks for function arguments and let bindings denoted as

View File

@ -1,14 +1,14 @@
use if_chain::if_chain;
use rustc::{declare_tool_lint, lint_array};
use rustc::hir::def::Def;
use rustc::hir::*;
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
use rustc::{declare_tool_lint, lint_array};
use rustc_errors::Applicability;
use syntax::ptr::P;
use crate::utils::{match_def_path, match_type, span_lint_and_then, SpanlessEq};
use crate::utils::paths::*;
use crate::utils::sugg::Sugg;
use crate::utils::{match_def_path, match_type, span_lint_and_then, SpanlessEq};
declare_clippy_lint! {
/// **What it does:** Checks for expressions that could be replaced by the question mark operator.

View File

@ -8,7 +8,6 @@
/// This should not compile-fail with:
///
/// error[E0277]: the trait bound `T: Foo` is not satisfied
///
// See rust-lang/rust-clippy#2760.
trait Foo {