diff options
-rw-r--r-- | utf8parse/src/lib.rs | 2 | ||||
-rw-r--r-- | utf8parse/src/types.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/utf8parse/src/lib.rs b/utf8parse/src/lib.rs index 947a0aa..093de81 100644 --- a/utf8parse/src/lib.rs +++ b/utf8parse/src/lib.rs @@ -25,7 +25,7 @@ pub trait Receiver { /// A parser for Utf8 Characters /// /// Repeatedly call `advance` with bytes to emit Utf8 characters -#[derive(Default)] +#[derive(Clone, Default, PartialEq, Eq, Debug)] pub struct Parser { point: u32, state: State, diff --git a/utf8parse/src/types.rs b/utf8parse/src/types.rs index 77a79cc..f57a94d 100644 --- a/utf8parse/src/types.rs +++ b/utf8parse/src/types.rs @@ -26,7 +26,7 @@ pub enum Action { /// There is a state for each initial input of the 3 and 4 byte sequences since /// the following bytes are subject to different conditions than a tail byte. #[allow(non_camel_case_types)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] pub enum State { /// Ground state; expect anything Ground = 0, |