Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit 7f6b0dc

Browse files
authored
feat: derive PartialOrd, Ord, and Hash on RegisterIndex (#425)
1 parent 040369a commit 7f6b0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brillig/src/opcodes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
33

44
pub type Label = usize;
55

6-
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
6+
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
77
pub struct RegisterIndex(pub usize);
88

99
/// `RegisterIndex` refers to the index in VM register space.

0 commit comments

Comments
 (0)