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 86929c1 commit 58c8fa6Copy full SHA for 58c8fa6
fuzz/fuzz_targets/file_io.rs
@@ -63,7 +63,7 @@ fuzz_target!(|array_data: ArbitraryArray| -> Corpus {
63
output.dtype()
64
);
65
66
- if has_struct(array_data.dtype()) {
+ if matches!(array_data.dtype(), DType::Struct(_, _) | DType::List(_, _)) {
67
compare_struct(array_data, output);
68
} else {
69
let r = compare(&array_data, &output, Operator::Eq).vortex_unwrap();
@@ -126,7 +126,3 @@ fn struct_has_duplicate_names(struct_dtype: &StructDType) -> bool {
126
.fields()
127
.any(|dtype| has_duplicate_field_names(&dtype))
128
}
129
-
130
-fn has_struct(dtype: &DType) -> bool {
131
- dtype.is_struct() || dtype.as_list_element().map(has_struct).unwrap_or(false)
132
-}
0 commit comments