From ab96c212230d2db780dafdc6d80c84be9f6036e0 Mon Sep 17 00:00:00 2001 From: quake Date: Tue, 21 Jan 2025 12:33:44 +0900 Subject: [PATCH] chore: Snapshot2Context load_data immutable --- src/snapshot2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)