Skip to content

Commit d571802

Browse files
authored
Merge pull request #2 from petrochenkov/master
Fix invalid constants in patterns
2 parents ef35d56 + 37ff0f4 commit d571802

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::ascii::AsciiExt;
44
#[derive(Debug)]
55
struct Bom ( u8, u8, u8, u8 );
66

7-
#[derive(Clone,Debug)]
7+
#[derive(Clone,Debug,PartialEq,Eq)]
88
enum Flavour {
99
UCS,
1010
UTF,
@@ -13,7 +13,7 @@ enum Flavour {
1313
Unknown,
1414
}
1515

16-
#[derive(Clone,Debug)]
16+
#[derive(Clone,Debug,PartialEq,Eq)]
1717
enum ByteOrder {
1818
BigEndian,
1919
LittleEndian,
@@ -22,14 +22,14 @@ enum ByteOrder {
2222
NotApplicable
2323
}
2424

25-
#[derive(Clone,Debug)]
25+
#[derive(Clone,Debug,PartialEq,Eq)]
2626
enum Width {
2727
EightBit = 8,
2828
SixteenBit = 16,
2929
ThirtyTwoBit = 32
3030
}
3131

32-
#[derive(Clone,Debug)]
32+
#[derive(Clone,Debug,PartialEq,Eq)]
3333
struct Descriptor (
3434
Flavour,
3535
Width,

0 commit comments

Comments
 (0)