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:
parent
cedfe92ff0
commit
4fa1f11f76
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue