Skip to content

Commit

Permalink
Change a panic to unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Oct 26, 2020
1 parent c90485d commit 1cc53e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/parquet/src/arrow/arrow_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ fn write_leaves(
($($kt: pat, $vt: pat, $w: ident => $kat: ty, $vat: ty,)*) => (
match (&**key_type, &**value_type, &mut col_writer) {
$(($kt, $vt, $w(writer)) => write_dict::<$kat, $vat, _>(array, writer, levels),)*
(kt, vt, _) => panic!("Don't know how to write dictionary of <{:?}, {:?}>", kt, vt),
(kt, vt, _) => unreachable!("Shouldn't be attempting to write dictionary of <{:?}, {:?}>", kt, vt),
}
);
}
Expand Down

0 comments on commit 1cc53e4

Please sign in to comment.