Skip to content

Commit

Permalink
Add PartialEq to Rectangle types
Browse files Browse the repository at this point in the history
  • Loading branch information
17cupsofcoffee committed Jan 19, 2024
1 parent fb57634 commit ff7f3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/rectangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use glam::{IVec2, Vec2};

macro_rules! rect {
($rect:ident, $t:ty, $point:path, $zero:literal) => {
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct $rect {
pub x: $t,
pub y: $t,
Expand Down

0 comments on commit ff7f3dc

Please sign in to comment.