Skip to content

Commit 8eca023

Browse files
authored
Add Eq trait to bit vectors (#17)
For other vector types, you are unable to have Eq because they would be comparing floating point numbers. Bit vectors don't have this problem though and should allow for Eq comparisons.
1 parent 4fa232b commit 8eca023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::diesel_ext::bit::BitType;
55
use diesel::{deserialize::FromSqlRow, expression::AsExpression};
66

77
/// A bit string.
8-
#[derive(Clone, Debug, PartialEq)]
8+
#[derive(Clone, Debug, PartialEq, Eq)]
99
#[cfg_attr(feature = "diesel", derive(FromSqlRow, AsExpression))]
1010
#[cfg_attr(feature = "diesel", diesel(sql_type = BitType))]
1111
pub struct Bit {

0 commit comments

Comments
 (0)