Skip to content

Commit

Permalink
Merge pull request #162 from H3rmt/master
Browse files Browse the repository at this point in the history
derive Eq, PartialEq, Hash, Ord, PartialOrd for Address
  • Loading branch information
yavko authored Feb 2, 2024
2 parents 993f6e5 + 2d17bef commit 3153895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub type HResult<T> = Result<T, HyprError>;

/// The address struct holds a address as a tuple with a single value
/// and has methods to reveal the address in different data formats
#[derive(Debug, Deserialize, Serialize, Clone)]
#[derive(Debug, Deserialize, Serialize, Clone, Eq, PartialEq, Hash, Ord, PartialOrd)]
pub struct Address(String);

/// This trait provides a standardized way to get data
Expand Down

0 comments on commit 3153895

Please sign in to comment.