Use u64::from

This commit is contained in:
Pedro de Oliveira 2023-04-23 01:39:11 +01:00
parent d8b5d0d948
commit 75ace3106b
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ impl VocFile {
};
let current_address = file.stream_position().unwrap();
let block_end_address = current_address + block_size as u64;
let block_end_address = current_address + u64::from(block_size);
let block: Box<dyn Block> = match block_type {
BlockType::Terminator => Box::new(Terminator::from_stream(