small fixes
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+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