Skip to content

Commit d6c8063

Browse files
committed
Rustfmt all the things
1 parent 38cdf63 commit d6c8063

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

clippy_lints/src/utils/mod.rs

+16-5
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,23 @@ pub fn differing_macro_contexts(lhs: Span, rhs: Span) -> bool {
6565
pub fn in_constant(cx: &LateContext<'_, '_>, id: NodeId) -> bool {
6666
let parent_id = cx.tcx.hir().get_parent(id);
6767
match cx.tcx.hir().get(parent_id) {
68-
| Node::Item(&Item { node: ItemKind::Const(..), .. })
69-
| Node::TraitItem(&TraitItem { node: TraitItemKind::Const(..), .. })
70-
| Node::ImplItem(&ImplItem { node: ImplItemKind::Const(..), .. })
68+
Node::Item(&Item {
69+
node: ItemKind::Const(..),
70+
..
71+
})
72+
| Node::TraitItem(&TraitItem {
73+
node: TraitItemKind::Const(..),
74+
..
75+
})
76+
| Node::ImplItem(&ImplItem {
77+
node: ImplItemKind::Const(..),
78+
..
79+
})
7180
| Node::AnonConst(_)
72-
| Node::Item(&Item { node: ItemKind::Static(..), .. })
73-
=> true,
81+
| Node::Item(&Item {
82+
node: ItemKind::Static(..),
83+
..
84+
}) => true,
7485
_ => false,
7586
}
7687
}

0 commit comments

Comments
 (0)