Skip to content

Commit

Permalink
Remove unnecessary lints
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeickert committed Mar 29, 2024
1 parent 58409fa commit 3dea366
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/utils/nullrng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ use zeroize::Zeroize;
pub(crate) struct NullRng;

impl RngCore for NullRng {
#[allow(unused_variables)]
fn fill_bytes(&mut self, dest: &mut [u8]) {
dest.zeroize();
}

#[allow(unused_variables)]
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {
self.fill_bytes(dest);

Expand Down

0 comments on commit 3dea366

Please sign in to comment.