diff --git a/src/snapshot2.rs b/src/snapshot2.rs index f06d25e2..d5dd77d6 100644 --- a/src/snapshot2.rs +++ b/src/snapshot2.rs @@ -104,7 +104,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)