Fix fuzz compilation error (#454)

This commit is contained in:
Kornel
2020-03-09 18:06:57 +00:00
committed by GitHub
parent f7718b5b19
commit 9af48b08c7

View File

@@ -28,7 +28,7 @@ impl<'a> MockIo<'a> {
} }
impl<'a> AsyncRead for MockIo<'a> { impl<'a> AsyncRead for MockIo<'a> {
unsafe fn prepare_uninitialized_buffer(&self, _buf: &mut [u8]) -> bool { unsafe fn prepare_uninitialized_buffer(&self, _buf: &mut [std::mem::MaybeUninit<u8>]) -> bool {
false false
} }
@@ -123,7 +123,7 @@ async fn run(script: &[u8]) -> Result<(), h2::Error> {
fn main() { fn main() {
env_logger::init(); env_logger::init();
let rt = tokio::runtime::Runtime::new().unwrap(); let mut rt = tokio::runtime::Runtime::new().unwrap();
loop { loop {
honggfuzz::fuzz!(|data: &[u8]| { honggfuzz::fuzz!(|data: &[u8]| {
eprintln!("{:?}", rt.block_on(run(data))); eprintln!("{:?}", rt.block_on(run(data)));