Skip to content

Commit

Permalink
add derives
Browse files Browse the repository at this point in the history
  • Loading branch information
kaesaecracker committed Nov 10, 2024
1 parent 00f2d67 commit a1ce989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/servicepoint/src/bitmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use bitvec::slice::IterMut;
use crate::{BitVec, DataRef, Grid, PIXEL_HEIGHT, PIXEL_WIDTH};

/// A grid of pixels stored in packed bytes.
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Bitmap {
width: usize,
height: usize,
Expand Down
2 changes: 1 addition & 1 deletion crates/servicepoint/src/brightness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use rand::{
/// # let connection = Connection::open("127.0.0.1:2342").unwrap();
/// let result = connection.send(Command::Brightness(b));
/// ```
#[derive(Debug, Copy, Clone, PartialEq)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Ord, PartialOrd)]
pub struct Brightness(u8);

/// A grid containing brightness values.
Expand Down

0 comments on commit a1ce989

Please sign in to comment.