Skip to content

Commit b1b2f55

Browse files
committed
odb: fix OdbReader read return value
git_odb_stream_read return the number of bytes read.
1 parent 9a5c970 commit b1b2f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/odb.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl<'repo> io::Read for OdbReader<'repo> {
364364
if res < 0 {
365365
Err(io::Error::new(io::ErrorKind::Other, "Read error"))
366366
} else {
367-
Ok(len)
367+
Ok(res as _)
368368
}
369369
}
370370
}

0 commit comments

Comments
 (0)