Skip to content

Commit

Permalink
Fix clippy::unit_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 7, 2024
1 parent e367f3a commit e997032
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ fn test_rng() -> impl RngCore {
}

fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand::Error> {
Ok(self.fill_bytes(dest))
self.fill_bytes(dest);
Ok(())
}
}

Expand Down

0 comments on commit e997032

Please sign in to comment.