small fixes
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# 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`).
|
||||
+1
-1
@@ -6,7 +6,7 @@ pub struct Color {
|
||||
}
|
||||
|
||||
impl Color {
|
||||
pub fn to_array(self) -> [u8; 3] {
|
||||
pub fn to_array(&self) -> [u8; 3] {
|
||||
[self.red, self.green, self.blue]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user