Skip to content

Commit 668b747

Browse files
committed
run cargo dev fmt and fix overly long line
1 parent 431924c commit 668b747

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

clippy_lints/src/derive.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::utils::paths;
22
use crate::utils::{
3-
get_trait_def_id, is_automatically_derived, is_copy, match_path, span_lint_and_help, span_lint_and_note, span_lint_and_then,
3+
get_trait_def_id, is_automatically_derived, is_copy, match_path, span_lint_and_help, span_lint_and_note,
4+
span_lint_and_then,
45
};
56
use if_chain::if_chain;
67
use rustc_hir::def_id::DefId;
@@ -154,7 +155,12 @@ declare_clippy_lint! {
154155
"deriving `serde::Deserialize` on a type that has methods using `unsafe`"
155156
}
156157

157-
declare_lint_pass!(Derive => [EXPL_IMPL_CLONE_ON_COPY, DERIVE_HASH_XOR_EQ, DERIVE_ORD_XOR_PARTIAL_ORD, UNSAFE_DERIVE_DESERIALIZE]);
158+
declare_lint_pass!(Derive => [
159+
EXPL_IMPL_CLONE_ON_COPY,
160+
DERIVE_HASH_XOR_EQ,
161+
DERIVE_ORD_XOR_PARTIAL_ORD,
162+
UNSAFE_DERIVE_DESERIALIZE
163+
]);
158164

159165
impl<'tcx> LateLintPass<'tcx> for Derive {
160166
fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) {

tests/ui/derive_ord_xor_partial_ord.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ mod use_ord {
6565
}
6666
}
6767

68-
fn main() {}
68+
fn main() {}

0 commit comments

Comments
 (0)