diff --git a/src/snapshot2.rs b/src/snapshot2.rs index 7ba4aa96..689c7694 100644 --- a/src/snapshot2.rs +++ b/src/snapshot2.rs @@ -100,7 +100,7 @@ impl> Snapshot2Context { Ok(()) } - pub fn load_data(&mut self, id: &I, offset: u64, length: u64) -> Result<(Bytes, u64), Error> { + pub fn load_data(&self, id: &I, offset: u64, length: u64) -> Result<(Bytes, u64), Error> { self.data_source .load_data(id, offset, length) .ok_or(Error::SnapshotDataLoadError)