Return Ok directly

Clippy emits warning:

	warning: passing a unit value to a function

Just return `Ok(())` after calling `fill_bytes`.
This commit is contained in:
Tobin Harding 2020-12-22 13:45:19 +11:00
parent 34ad4110f1
commit ef23cb8167
1 changed files with 2 additions and 1 deletions

View File

@ -512,7 +512,8 @@ mod test {
self.0 -= 1; self.0 -= 1;
} }
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error> { fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error> {
Ok(self.fill_bytes(dest)) self.fill_bytes(dest);
Ok(())
} }
} }