diff options
author | Christian Duerr <contact@christianduerr.com> | 2019-11-23 02:01:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-23 02:01:09 +0100 |
commit | ea940fcb74abce67b927788e4f9f64fc63073d37 (patch) | |
tree | cb0c9db4008e5fec07c9655dea29513614f5f7b9 /utf8parse/src/types.rs | |
parent | a035f334a108f4a694cf022e063edb9c8ac349ad (diff) | |
download | r-alacritty-vte-ea940fcb74abce67b927788e4f9f64fc63073d37.tar.gz r-alacritty-vte-ea940fcb74abce67b927788e4f9f64fc63073d37.tar.bz2 r-alacritty-vte-ea940fcb74abce67b927788e4f9f64fc63073d37.zip |
Update to Rust 2018
This moves all crates in the workspace to the latest Rust standard and
resolves various style and formatting issues.
Fixes #32.
Diffstat (limited to 'utf8parse/src/types.rs')
-rw-r--r-- | utf8parse/src/types.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utf8parse/src/types.rs b/utf8parse/src/types.rs index a5b9436..93607fb 100644 --- a/utf8parse/src/types.rs +++ b/utf8parse/src/types.rs @@ -27,6 +27,12 @@ pub enum State { Utf8_4_3_f4 = 7, } +impl Default for State { + fn default() -> State { + State::Ground + } +} + /// Action to take when receiving a byte #[allow(dead_code)] #[derive(Debug, Copy, Clone)] @@ -70,7 +76,6 @@ pub unsafe fn unpack(val: u8) -> (State, Action) { ( // State is stored in bottom 4 bits mem::transmute(val & 0x0f), - // Action is stored in top 4 bits mem::transmute(val >> 4), ) |