(mut read: R)
| 386 | } |
| 387 | |
| 388 | fn decode_u32<R: Read>(mut read: R) -> io::Result<u32> { |
| 389 | let mut buf = [0; 4]; |
| 390 | read.read_exact(&mut buf)?; |
| 391 | Ok(u32::from_le_bytes(buf)) |
| 392 | } |
| 393 | |
| 394 | fn decode_header_error(e: DecodeError, field: &str) -> io::Error { |
| 395 | invalid_data(format!("failed to decode commit header field '{field}': {e}")) |
no test coverage detected
searching dependent graphs…