Skip to content

Commit 5918a3f

Browse files
committed
Remove import of if_chain
1 parent c767635 commit 5918a3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+55
-3
lines changed

clippy_lints/src/assign_ops.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use rustc::hir;
44
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
55
use rustc::lint::*;
66
use rustc::{declare_lint, lint_array};
7+
use if_chain::if_chain;
78
use syntax::ast;
89

910
/// **What it does:** Checks for compound assignment operations (`+=` and

clippy_lints/src/attrs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use crate::utils::{
88
use rustc::hir::*;
99
use rustc::lint::*;
1010
use rustc::{declare_lint, lint_array};
11+
use if_chain::if_chain;
1112
use rustc::ty::{self, TyCtxt};
1213
use semver::Version;
1314
use syntax::ast::{AttrStyle, Attribute, Lit, LitKind, MetaItemKind, NestedMetaItem, NestedMetaItemKind};

clippy_lints/src/bit_mask.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use rustc::hir::*;
22
use rustc::lint::*;
33
use rustc::{declare_lint, lint_array};
4+
use if_chain::if_chain;
45
use syntax::ast::LitKind;
56
use syntax::codemap::Span;
67
use crate::utils::{span_lint, span_lint_and_then};

clippy_lints/src/bytecount.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use rustc::hir::*;
22
use rustc::lint::*;
33
use rustc::{declare_lint, lint_array};
4+
use if_chain::if_chain;
45
use rustc::ty;
56
use syntax::ast::{Name, UintTy};
67
use crate::utils::{contains_name, get_pat_name, match_type, paths, single_segment_path, snippet, span_lint_and_sugg,

clippy_lints/src/collapsible_if.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
use rustc::lint::*;
1616
use rustc::{declare_lint, lint_array};
17+
use if_chain::if_chain;
1718
use syntax::ast;
1819

1920
use crate::utils::{in_macro, snippet_block, span_lint_and_sugg, span_lint_and_then};

clippy_lints/src/default_trait_access.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use rustc::hir::*;
22
use rustc::lint::*;
33
use rustc::{declare_lint, lint_array};
4+
use if_chain::if_chain;
45
use rustc::ty::TypeVariants;
56

67
use crate::utils::{any_parent_is_automatically_derived, match_def_path, opt_def_id, paths, span_lint_and_sugg};

clippy_lints/src/derive.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use rustc::lint::*;
22
use rustc::{declare_lint, lint_array};
3+
use if_chain::if_chain;
34
use rustc::ty::{self, Ty};
45
use rustc::hir::*;
56
use syntax::codemap::Span;

clippy_lints/src/drop_forget_ref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use rustc::lint::*;
22
use rustc::{declare_lint, lint_array};
3+
use if_chain::if_chain;
34
use rustc::ty;
45
use rustc::hir::*;
56
use crate::utils::{is_copy, match_def_path, opt_def_id, paths, span_note_and_lint};

clippy_lints/src/duration_subsec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use rustc::hir::*;
22
use rustc::lint::*;
33
use rustc::{declare_lint, lint_array};
4+
use if_chain::if_chain;
45
use syntax::codemap::Spanned;
56

67
use crate::consts::{constant, Constant};

clippy_lints/src/entry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use rustc::hir::*;
22
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};
33
use rustc::lint::*;
44
use rustc::{declare_lint, lint_array};
5+
use if_chain::if_chain;
56
use syntax::codemap::Span;
67
use crate::utils::SpanlessEq;
78
use crate::utils::{get_item_name, match_type, paths, snippet, span_lint_and_then, walk_ptrs_ty};

0 commit comments

Comments
 (0)