build: Apply cargo fmt check to fuzz workspace

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford
2024-09-28 10:01:35 +01:00
parent 13cf7a1315
commit f041c940a7
15 changed files with 47 additions and 30 deletions
+3 -2
View File
@@ -5,14 +5,15 @@
// SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause
#![no_main]
use block::qcow::{QcowFile, RawFile};
use libfuzzer_sys::fuzz_target;
use std::ffi;
use std::fs::File;
use std::io::{self, Cursor, Read, Seek, SeekFrom, Write};
use std::mem::size_of;
use std::os::unix::io::{FromRawFd, RawFd};
use block::qcow::{QcowFile, RawFile};
use libfuzzer_sys::fuzz_target;
// Take the first 64 bits of data as an address and the next 64 bits as data to
// store there. The rest of the data is used as a qcow image.
fuzz_target!(|bytes| {