From abf3bba966a3e004638429e34978176e8214f99d Mon Sep 17 00:00:00 2001 From: Chris <11088935+caemor@users.noreply.github.com> Date: Wed, 15 Dec 2021 21:31:30 +0100 Subject: [PATCH] Update graphics.rs Fix needless borrow --- src/graphics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics.rs b/src/graphics.rs index 5a19e4a..e2d78e7 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -304,7 +304,7 @@ impl<'a> Display for VarDisplay<'a> { } fn get_mut_buffer(&mut self) -> &mut [u8] { - &mut self.buffer + self.buffer } fn set_rotation(&mut self, rotation: DisplayRotation) {