diff --git a/src/v1.rs b/src/v1.rs index 60b71fe..8600e76 100644 --- a/src/v1.rs +++ b/src/v1.rs @@ -437,7 +437,7 @@ impl File{ let mut big_block=Block::default(); for &TimedBlockId{time:_,block_id} in block_iter{ let block_info=self.header.block_info(block_id)?; - self.data.read_block_info_into(block_info,&mut big_block)?; + self.data.read_block_info_into_block(block_info,&mut big_block)?; } Ok(big_block) } @@ -459,7 +459,7 @@ impl FileData{ let block=Block::read(data).map_err(Error::InvalidData)?; Ok(block) } - pub fn read_block_info_into(&mut self,block_info:BlockInfo,block:&mut Block)->Result<(),Error>{ + pub fn read_block_info_into_block(&mut self,block_info:BlockInfo,block:&mut Block)->Result<(),Error>{ let data=self.block_reader(block_info)?; Block::read_into_amortized(data,block).map_err(Error::InvalidData)?; Ok(())