From 023f1c9ac117cd5ef2e45119b61b94f85d109667 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Wed, 8 May 2024 11:08:11 -0400 Subject: [PATCH] lite: fix attribute warning about rustfmt I'm not sure why I wrote it like this originally? --- regex-lite/src/utf8.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,