]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/drop_forget_ref.rs
Merge pull request #1963 from rust-lang-nursery/upstream
[rust.git] / clippy_lints / src / drop_forget_ref.rs
index dfa8ddbab6ccaa3027c9d82043788e42ec8f483d..6ca04d40067a7697ec3436afc337cddd44c3d93e 100644 (file)
@@ -1,7 +1,7 @@
 use rustc::lint::*;
 use rustc::ty;
 use rustc::hir::*;
-use utils::{match_def_path, paths, span_note_and_lint, is_copy};
+use utils::{is_copy, match_def_path, paths, span_note_and_lint};
 
 /// **What it does:** Checks for calls to `std::mem::drop` with a reference
 /// instead of an owned value.
 }
 
 const DROP_REF_SUMMARY: &str = "calls to `std::mem::drop` with a reference instead of an owned value. \
-                               Dropping a reference does nothing.";
+                                Dropping a reference does nothing.";
 const FORGET_REF_SUMMARY: &str = "calls to `std::mem::forget` with a reference instead of an owned value. \
-                                 Forgetting a reference does nothing.";
+                                  Forgetting a reference does nothing.";
 const DROP_COPY_SUMMARY: &str = "calls to `std::mem::drop` with a value that implements Copy. \
-                                Dropping a copy leaves the original intact.";
+                                 Dropping a copy leaves the original intact.";
 const FORGET_COPY_SUMMARY: &str = "calls to `std::mem::forget` with a value that implements Copy. \
-                                  Forgetting a copy leaves the original intact.";
+                                   Forgetting a copy leaves the original intact.";
 
 #[allow(missing_copy_implementations)]
 pub struct Pass;