diff --git a/neqo-common/src/fuzz.rs b/neqo-common/src/fuzz.rs index f218b05e7d..0c892b4b3f 100644 --- a/neqo-common/src/fuzz.rs +++ b/neqo-common/src/fuzz.rs @@ -13,6 +13,10 @@ use std::{ /// Write a data item `data` for the fuzzing target `target` to the fuzzing corpus. The caller needs /// to make sure that `target` is the correct fuzzing target name for the data written. +/// +/// # Panics +/// +/// Panics if the corpus directory does not exist or if the corpus item cannot be written. pub fn write_item_to_fuzzing_corpus(target: &str, data: &[u8]) { // This bakes in the assumption that we're executing in the root of the neqo workspace. // Unfortuntely, `cargo fuzz` doesn't provide a way to learn the location of the corpus diff --git a/test-fixture/src/sim/rng.rs b/test-fixture/src/sim/rng.rs index 7da15b2c22..89e7d446fc 100644 --- a/test-fixture/src/sim/rng.rs +++ b/test-fixture/src/sim/rng.rs @@ -32,7 +32,7 @@ impl Random { #[cfg(feature = "disable-random")] pub fn random(&mut self) -> u64 { - return 0; + 0 } #[cfg(not(feature = "disable-random"))]