DrawCommandRecorder::finish() doesn't need mutable reference
This commit is contained in:
1 parent
1cd62c2b1c
commit
6fe15c63fe
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user