Skip to content

Commit e997032

Browse files
committed
Fix clippy::unit_arg
1 parent e367f3a commit e997032

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crand.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ fn test_rng() -> impl RngCore {
7070
}
7171

7272
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand::Error> {
73-
Ok(self.fill_bytes(dest))
73+
self.fill_bytes(dest);
74+
Ok(())
7475
}
7576
}
7677

0 commit comments

Comments
 (0)