From 4fa1f11f760992acbcddd8bc927773a7d69e674c Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 15 Jul 2024 03:26:18 +0000 Subject: [PATCH] fix clippy warning in fuzz code --- fuzz/fuzz_targets/fuzz_target_1.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fuzz/fuzz_targets/fuzz_target_1.rs b/fuzz/fuzz_targets/fuzz_target_1.rs index a7a7d13..04670e3 100644 --- a/fuzz/fuzz_targets/fuzz_target_1.rs +++ b/fuzz/fuzz_targets/fuzz_target_1.rs @@ -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(); } });