Parcourir la source

Tell rustfmt to leave some data tables alone

Simon Sapin il y a 7 ans
Parent
commit
9b8c149ce1
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 1 0
      data-url/src/forgiving_base64.rs
  2. 1 0
      data-url/src/mime.rs

+ 1 - 0
data-url/src/forgiving_base64.rs

@@ -148,6 +148,7 @@ impl<F, E> Decoder<F, E> where F: FnMut(&[u8]) -> Result<(), E> {
 /// Array values are their positions in the base64 alphabet,
 /// or -1 for symbols not in the alphabet.
 /// The position contributes 6 bits to the decoded bytes.
+#[rustfmt::skip]
 const BASE64_DECODE_TABLE: [i8; 256] = [
     -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
     -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,

+ 1 - 0
data-url/src/mime.rs

@@ -160,6 +160,7 @@ macro_rules! byte_map {
 }
 
 // Copied from https://github.com/hyperium/mime/blob/v0.3.5/src/parse.rs#L293
+#[rustfmt::skip]
 static IS_HTTP_TOKEN: [bool; 256] = byte_map![
     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,