Skip to content

Commit 2ff2896

Browse files
committed
✨ Derive Hash
1 parent 2da6c65 commit 2ff2896

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/terminal-colorsaurus/src/color.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// An RGB color with 16 bits per channel.
22
/// You can use [`Color::scale_to_8bit`] to convert to an 8bit RGB color.
3-
#[derive(Debug, Clone, Default, Eq, PartialEq)]
3+
#[derive(Debug, Clone, Default, Eq, PartialEq, Hash)]
44
#[allow(clippy::exhaustive_structs)]
55
pub struct Color {
66
/// Red

crates/terminal-colorsaurus/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub use color::*;
8585

8686
/// The color palette i.e. foreground and background colors of the terminal.
8787
/// Retrieved by calling [`color_palette`].
88-
#[derive(Debug, Clone, PartialEq, Eq)]
88+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
8989
#[non_exhaustive]
9090
pub struct ColorPalette {
9191
/// The foreground color of the terminal.
@@ -98,7 +98,7 @@ pub struct ColorPalette {
9898
///
9999
/// The easiest way to retrieve the color scheme
100100
/// is by calling [`color_scheme`].
101-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
101+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
102102
#[allow(clippy::exhaustive_enums)]
103103
#[doc(alias = "Theme")]
104104
pub enum ColorScheme {

0 commit comments

Comments
 (0)