mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-16 17:07:35 +00:00
std-shims: six Read
for &[u8]
This commit is contained in:
parent
d928b787f7
commit
30834fe4d2
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ mod shims {
|
|||
|
||||
impl Read for &[u8] {
|
||||
fn read(&mut self, buf: &mut [u8]) -> Result<usize> {
|
||||
let mut read = 0;
|
||||
let mut read = buf.len();
|
||||
if self.len() < buf.len() {
|
||||
read = self.len();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue