diff --git a/regex-lite/src/utf8.rs b/regex-lite/src/utf8.rs index 5f2a6a153..2730b602d 100644 --- a/regex-lite/src/utf8.rs +++ b/regex-lite/src/utf8.rs @@ -87,7 +87,7 @@ fn decode_step(state: &mut usize, cp: &mut u32, b: u8) { // Splits the space of all bytes into equivalence classes, such that // any byte in the same class can never discriminate between whether a // particular sequence is valid UTF-8 or not. - #[cfg_attr(rustfmt, rustfmt::skip)] + #[rustfmt::skip] const CLASSES: [u8; 256] = [ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, @@ -101,7 +101,7 @@ fn decode_step(state: &mut usize, cp: &mut u32, b: u8) { // A state machine taken from `bstr` which was in turn adapted from: // https://bjoern.hoehrmann.de/utf-8/decoder/dfa/ - #[cfg_attr(rustfmt, rustfmt::skip)] + #[rustfmt::skip] const STATES_FORWARD: &'static [u8] = &[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 24, 36, 60, 96, 84, 0, 0, 0, 48, 72,