Skip to content

Commit 023f1c9

Browse files
committed
lite: fix attribute warning about rustfmt
I'm not sure why I wrote it like this originally?
1 parent 9c139f4 commit 023f1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regex-lite/src/utf8.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn decode_step(state: &mut usize, cp: &mut u32, b: u8) {
8787
// Splits the space of all bytes into equivalence classes, such that
8888
// any byte in the same class can never discriminate between whether a
8989
// particular sequence is valid UTF-8 or not.
90-
#[cfg_attr(rustfmt, rustfmt::skip)]
90+
#[rustfmt::skip]
9191
const CLASSES: [u8; 256] = [
9292
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,
9393
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) {
101101

102102
// A state machine taken from `bstr` which was in turn adapted from:
103103
// https://bjoern.hoehrmann.de/utf-8/decoder/dfa/
104-
#[cfg_attr(rustfmt, rustfmt::skip)]
104+
#[rustfmt::skip]
105105
const STATES_FORWARD: &'static [u8] = &[
106106
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
107107
12, 0, 24, 36, 60, 96, 84, 0, 0, 0, 48, 72,

0 commit comments

Comments
 (0)