fixed data taking mut self

This commit is contained in:
dani 2023-07-09 23:18:02 +00:00
parent abc2d4b1f9
commit 09dada68a9
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ impl Image {
self.data.as_mut_slice()
}
pub fn data(&mut self) -> &[u8] {
pub fn data(&self) -> &[u8] {
self.data.as_slice()
}