diff options
Diffstat (limited to 'utf8parse/src/types.rs')
-rw-r--r-- | utf8parse/src/types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8parse/src/types.rs b/utf8parse/src/types.rs index 5a70b3c..77a79cc 100644 --- a/utf8parse/src/types.rs +++ b/utf8parse/src/types.rs @@ -58,7 +58,7 @@ impl State { /// This takes the current state and input byte into consideration, to determine the next state /// and any action that should be taken. #[inline] - pub fn advance(&self, byte: u8) -> (State, Action) { + pub fn advance(self, byte: u8) -> (State, Action) { match self { State::Ground => match byte { 0x00..=0x7f => (State::Ground, Action::EmitByte), |