fixed data taking mut self
This commit is contained in:
parent
abc2d4b1f9
commit
09dada68a9
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue