Skip to content

Commit

Permalink
Proper Copy and Clone for Color struct
Browse files Browse the repository at this point in the history
  • Loading branch information
ionarevamp committed Sep 10, 2024
1 parent de47186 commit 5571181
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pub struct Vec2<T: Sized> {
pub y: T,
}

#[derive(Debug, Clone, Copy)]
pub struct Color {
pub a: u8,
pub r: u8,
Expand Down

0 comments on commit 5571181

Please sign in to comment.