diff --git a/arrow-json/src/reader/schema.rs b/arrow-json/src/reader/schema.rs index 6273fbdd9f26..126a85df3931 100644 --- a/arrow-json/src/reader/schema.rs +++ b/arrow-json/src/reader/schema.rs @@ -74,11 +74,7 @@ impl InferredType { } fn is_none_or_any(ty: Option<&Self>) -> bool { - match ty { - Some(Self::Any) => true, - None => true, - _ => false, - } + matches!(ty, Some(Self::Any) | None) } }