We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a61bb2 commit 03acbbeCopy full SHA for 03acbbe
lints/type_cosplay/src/lib.rs
@@ -94,6 +94,7 @@ impl<'tcx> LateLintPass<'tcx> for TypeCosplay {
94
95
fn check_crate_post(&mut self, cx: &LateContext<'tcx>) {
96
// NOTE: the case where len == 0 does nothing, since no types are deserialized
97
+ #[allow(clippy::comparison_chain)]
98
if self.deser_types.len() == 1 {
99
let (k, v) = self.deser_types.iter().next().unwrap();
100
match k {
@@ -113,7 +114,7 @@ impl<'tcx> LateLintPass<'tcx> for TypeCosplay {
113
114
"Deserializing from different ADT types.",
115
Some(spans[1]),
116
"help: deserialize from only structs with a discriminant, or an enum encapsulating all structs."
- )
117
+ );
118
}
119
120
0 commit comments