From e99703254a14cca8617e7b5843efeac6e2d36223 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 7 May 2024 16:13:20 -0700 Subject: [PATCH] Fix `clippy::unit_arg` --- src/crand.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crand.rs b/src/crand.rs index 5edf8a7..44ef441 100644 --- a/src/crand.rs +++ b/src/crand.rs @@ -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(()) } }