DrawCommandRecorder::finish() doesn't need mutable reference

This commit is contained in:
meehl committed 2026-08-18 11:06:38 +02:00
1 parent 1cd62c2b1c
commit 6fe15c63fe
1 file changed
+1 -1
+1 -1
View File
@@ -153,7 +153,7 @@ impl DrawCommandRecorder {
});
}
pub fn finish(&mut self) -> (u64, &BTreeMap<(i32, i32), Vec<DrawCommand>>) {
pub fn finish(&self) -> (u64, &BTreeMap<(i32, i32), Vec<DrawCommand>>) {
(self.hasher.finish(), &self.layers)
}
}