Skip to content

Commit

Permalink
fix: converting Color to BinaryColor (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strum355 authored Jul 27, 2024
1 parent c0e5617 commit c7fad30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub enum Color {
impl From<BinaryColor> for Color {
fn from(value: BinaryColor) -> Self {
match value {
BinaryColor::Off => Color::White,
BinaryColor::On => Color::Black,
BinaryColor::On => Color::White,
BinaryColor::Off => Color::Black,
}
}
}
Expand Down

0 comments on commit c7fad30

Please sign in to comment.