Skip to content

Commit 4986ff2

Browse files
committed
Return Ok directly
Clippy emits warning: warning: passing a unit value to a function Just return `Ok(())` after calling `fill_bytes`.
1 parent e42f3f8 commit 4986ff2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/key.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,8 @@ mod test {
512512
self.0 -= 1;
513513
}
514514
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error> {
515-
Ok(self.fill_bytes(dest))
515+
self.fill_bytes(dest);
516+
Ok(())
516517
}
517518
}
518519

0 commit comments

Comments
 (0)