Skip to content

Commit

Permalink
Add some trait implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Jul 15, 2024
1 parent 7845695 commit bc8c459
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion path/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::NoStdFloat;

/// A path verb.
#[allow(missing_docs)]
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug)]
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
pub enum PathVerb {
Move,
Line,
Expand Down
2 changes: 1 addition & 1 deletion path/src/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ mod int_rect_tests {
/// - Top edge is <= bottom.
/// - Width and height are <= f32::MAX.
#[allow(missing_docs)]
#[derive(Copy, Clone, PartialEq)]
#[derive(Copy, Clone, PartialEq, Hash, Eq)]
pub struct Rect {
left: FiniteF32,
top: FiniteF32,
Expand Down
2 changes: 1 addition & 1 deletion path/src/size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ mod tests {
/// # Guarantees
///
/// - Width and height are positive, non-zero and finite.
#[derive(Copy, Clone, PartialEq, Debug)]
#[derive(Copy, Clone, PartialEq, Debug, Hash, Eq)]
pub struct Size {
width: NonZeroPositiveF32,
height: NonZeroPositiveF32,
Expand Down

0 comments on commit bc8c459

Please sign in to comment.