diff --git a/README.md b/README.md index 6dddc95..b94c8f2 100644 --- a/README.md +++ b/README.md @@ -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`). \ No newline at end of file diff --git a/src/color.rs b/src/color.rs index ffdc1db..580f67c 100644 --- a/src/color.rs +++ b/src/color.rs @@ -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] } }