small fixes

This commit is contained in:
vextrixes committed 2026-07-04 10:08:51 +02:00
1 parent c234070707
commit 526ffa885e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
# gk1000 # gk1000
A simple rust libary to control the rgb on the `CZC GK1000` keyboard (possibly might work on other OEM keyboards based of A simple rust library to control the rgb on the `CZC GK1000` keyboard (possibly might work on other OEM keyboards based on
the `Rosewill K81`). the `Rosewill K81`).
+1 -1
View File
@@ -6,7 +6,7 @@ pub struct Color {
} }
impl Color { impl Color {
pub fn to_array(self) -> [u8; 3] { pub fn to_array(&self) -> [u8; 3] {
[self.red, self.green, self.blue] [self.red, self.green, self.blue]
} }
} }