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:
parent
34ad4110f1
commit
ef23cb8167
|
@ -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(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue