Skip to content

Commit

Permalink
tweak Node type
Browse files Browse the repository at this point in the history
I'm using it elsewhere, where `Eq` and `Hash` come in handy
  • Loading branch information
nilclass committed Feb 14, 2024
1 parent 915f7c0 commit 435a983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl<'de> serde::de::Visitor<'de> for ColorVisitor {
/// A node is everything that can be connected to any other nodes
#[allow(non_camel_case_types)]
#[allow(clippy::upper_case_acronyms)]
#[derive(Debug, Clone, Copy, PartialEq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Node {
GND,
SUPPLY_5V,
Expand Down

0 comments on commit 435a983

Please sign in to comment.