Do only one convertion to u64

This commit is contained in:
Kerollmops 2022-12-13 15:10:51 +01:00
parent 5d5615ef45
commit 7b2f2a4f9c
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 8 additions and 8 deletions

View file

@ -1190,7 +1190,7 @@ mod tests {
pub fn read_json(
bytes: &[u8],
write: impl Write + Seek,
) -> std::result::Result<usize, DocumentFormatError> {
) -> std::result::Result<u64, DocumentFormatError> {
let temp_file = NamedTempFile::new().unwrap();
let mut buffer = BufWriter::new(temp_file.reopen().unwrap());
buffer.write_all(bytes).unwrap();