From f3fccf9135f2ebc17b5c966dfb14ee45ca12b3c0 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 27 Feb 2025 03:12:41 +0800 Subject: [PATCH] fix unnecessary mutability in trait --- libs/ux-api/src/minigfx/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ux-api/src/minigfx/mod.rs b/libs/ux-api/src/minigfx/mod.rs index 5cab69310..2d5d492ae 100644 --- a/libs/ux-api/src/minigfx/mod.rs +++ b/libs/ux-api/src/minigfx/mod.rs @@ -39,7 +39,7 @@ pub trait FrameBuffer { /// Puts a pixel of ColorNative at x, y. (0, 0) is defined as the lower left corner. fn put_pixel(&mut self, p: Point, color: ColorNative); /// Retrieves a pixel value from the frame buffer; returns None if the point is out of bounds. - fn get_pixel(&mut self, p: Point) -> Option; + fn get_pixel(&self, p: Point) -> Option; /// XORs a pixel to what is in the existing frame buffer. The exact definition of "XOR" is somewhat /// ambiguous for full color systems but is generally meant to imply a light/dark swap of foreground /// and background colors for a color theme.