Skip to content

Commit

Permalink
Fix unoptimize binary fuzz compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbabcock committed Aug 1, 2024
1 parent 907d838 commit ac7256d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fuzz/fuzz_targets/fuzz_binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,8 @@ fuzz_target!(|data: &[u8]| {
jomini::binary::BinaryTapeParser.parse_slice_into_tape_unoptimized(&data, &mut utape);

match (ures, ores) {
(Ok(t1), Ok(t2)) => assert_eq!(t1.tokens(), t2.tokens()),
(Err(_), Err(_)) => {
break;
}
(Ok(_), Ok(t2)) => assert_eq!(utape.tokens(), t2.tokens()),
(Err(_), Err(_)) => {}
(x, y) => panic!("{:?} {:?}", x, y),
}
}
Expand Down

0 comments on commit ac7256d

Please sign in to comment.