We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
clippy::unit_arg
1 parent e367f3a commit e997032Copy full SHA for e997032
1 file changed
src/crand.rs
@@ -70,7 +70,8 @@ fn test_rng() -> impl RngCore {
70
}
71
72
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand::Error> {
73
- Ok(self.fill_bytes(dest))
+ self.fill_bytes(dest);
74
+ Ok(())
75
76
77
0 commit comments