We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c139f4 commit 023f1c9Copy full SHA for 023f1c9
regex-lite/src/utf8.rs
@@ -87,7 +87,7 @@ fn decode_step(state: &mut usize, cp: &mut u32, b: u8) {
87
// Splits the space of all bytes into equivalence classes, such that
88
// any byte in the same class can never discriminate between whether a
89
// particular sequence is valid UTF-8 or not.
90
- #[cfg_attr(rustfmt, rustfmt::skip)]
+ #[rustfmt::skip]
91
const CLASSES: [u8; 256] = [
92
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,
93
@@ -101,7 +101,7 @@ fn decode_step(state: &mut usize, cp: &mut u32, b: u8) {
101
102
// A state machine taken from `bstr` which was in turn adapted from:
103
// https://bjoern.hoehrmann.de/utf-8/decoder/dfa/
104
105
const STATES_FORWARD: &'static [u8] = &[
106
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
107
12, 0, 24, 36, 60, 96, 84, 0, 0, 0, 48, 72,
0 commit comments