Skip to content

Commit 03acbbe

Browse files
committed
Make Clippy happy
1 parent 2a61bb2 commit 03acbbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lints/type_cosplay/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ impl<'tcx> LateLintPass<'tcx> for TypeCosplay {
9494

9595
fn check_crate_post(&mut self, cx: &LateContext<'tcx>) {
9696
// NOTE: the case where len == 0 does nothing, since no types are deserialized
97+
#[allow(clippy::comparison_chain)]
9798
if self.deser_types.len() == 1 {
9899
let (k, v) = self.deser_types.iter().next().unwrap();
99100
match k {
@@ -113,7 +114,7 @@ impl<'tcx> LateLintPass<'tcx> for TypeCosplay {
113114
"Deserializing from different ADT types.",
114115
Some(spans[1]),
115116
"help: deserialize from only structs with a discriminant, or an enum encapsulating all structs."
116-
)
117+
);
117118
}
118119
}
119120
}

0 commit comments

Comments
 (0)