Skip to content

Commit

Permalink
ConstInt is Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Aug 6, 2024
1 parent 703551a commit e960579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugr-core/src/std_extensions/arithmetic/int_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const fn type_arg(log_width: u8) -> TypeArg {
}

/// An integer (either signed or unsigned)
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize)]
#[derive(Clone, Debug, Eq, PartialEq, Hash, serde::Serialize, serde::Deserialize)]
pub struct ConstInt {
log_width: u8,
// We always use a u64 for the value. The interpretation is:
Expand Down

0 comments on commit e960579

Please sign in to comment.