]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/infallible_destructuring_match.rs
Merge branch 'macro-use' into HEAD
[rust.git] / clippy_lints / src / infallible_destructuring_match.rs
index 9abd9754d6795950823eb39e8bc0c2672986464e..8b8cb32deb1afedcb8aeca0e7bf4eb2831aeb24c 100644 (file)
@@ -1,6 +1,8 @@
 use super::utils::{get_arg_name, match_var, remove_blocks, snippet, span_lint_and_sugg};
 use rustc::hir::*;
 use rustc::lint::*;
+use rustc::{declare_lint, lint_array};
+use if_chain::if_chain;
 
 /// **What it does:** Checks for matches being used to destructure a single-variant enum
 /// or tuple struct where a `let` will suffice.