Skip to content

Commit 486ff43

Browse files
authored
Param should impl Eq (#50)
* Parameter should impl Eq * bump ver
1 parent 9b43cf4 commit 486ff43

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "safety-net"
3-
version = "0.2.5"
3+
version = "0.2.6"
44
edition = "2024"
55
license = "MIT OR Apache-2.0"
66

src/attribute.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl std::fmt::Display for Attribute {
5959
}
6060
}
6161

62-
#[derive(Debug, Clone)]
62+
#[derive(Debug, Clone, PartialEq)]
6363
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
6464
/// A dedicated type to parameters for instantiables
6565
pub enum Parameter {
@@ -71,6 +71,8 @@ pub enum Parameter {
7171
BitVec(BitVec),
7272
}
7373

74+
impl Eq for Parameter {}
75+
7476
impl std::fmt::Display for Parameter {
7577
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7678
match self {

0 commit comments

Comments
 (0)