Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Apr 5, 2024
1 parent e7beafb commit d8ce45b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions neqo-common/src/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test-fixture/src/sim/rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Random {

#[cfg(feature = "disable-random")]
pub fn random(&mut self) -> u64 {
return 0;
0
}

#[cfg(not(feature = "disable-random"))]
Expand Down

0 comments on commit d8ce45b

Please sign in to comment.