more changes to the displaydimension trait

This commit is contained in:
Chris
2018-10-19 16:16:43 +02:00
parent a832ab9fed
commit a1adeb77a4
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ impl Default for DisplayEink4in2BlackWhite {
}
impl DisplayDimension for DisplayEink4in2BlackWhite {
fn buffer(&self) -> &[u8] {
&self.buffer
fn buffer(&mut self) -> &mut [u8] {
&mut self.buffer
}
fn width(&self) -> u32 {
self.width