Skip to content

Commit

Permalink
lite: fix attribute warning about rustfmt
Browse files Browse the repository at this point in the history
I'm not sure why I wrote it like this originally?
  • Loading branch information
BurntSushi committed May 8, 2024
1 parent 9c139f4 commit 023f1c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regex-lite/src/utf8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 023f1c9

Please sign in to comment.