diff --git a/src/odb.rs b/src/odb.rs index 7f6da5eb30..c64964943a 100644 --- a/src/odb.rs +++ b/src/odb.rs @@ -364,7 +364,7 @@ impl<'repo> io::Read for OdbReader<'repo> { if res < 0 { Err(io::Error::new(io::ErrorKind::Other, "Read error")) } else { - Ok(len) + Ok(res as _) } } }