Skip to content

Commit

Permalink
fix: impl Ord for parser id types (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
obmarg authored Jun 10, 2024
1 parent bf66dd8 commit 5e7b817
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cynic-parser/src/executable/ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{common::IdRange, AstLookup};

macro_rules! make_id {
($name:ident, $output:ident, $field:ident) => {
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub struct $name(NonZeroU32);

impl $name {
Expand Down
2 changes: 1 addition & 1 deletion cynic-parser/src/type_system/ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{common::IdRange, AstLookup};

macro_rules! make_id {
($name:ident, $output:ident, $field:ident) => {
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub struct $name(NonZeroU32);

impl $name {
Expand Down

0 comments on commit 5e7b817

Please sign in to comment.