1
0
Fork 0
mirror of https://github.com/azalea-rs/simdnbt.git synced 2025-08-02 07:26:04 +00:00

fix clippy warning in fuzz code

This commit is contained in:
mat 2024-07-15 03:26:18 +00:00
parent cedfe92ff0
commit 4fa1f11f76

View file

@ -3,9 +3,9 @@
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &[u8]| {
if let Ok(r) = simdnbt::borrow::read(&mut std::io::Cursor::new(data)) {
if let simdnbt::borrow::Nbt::Some(r) = r {
r.as_compound().to_owned();
}
if let Ok(simdnbt::borrow::Nbt::Some(r)) =
simdnbt::borrow::read(&mut std::io::Cursor::new(data))
{
r.as_compound().to_owned();
}
});