File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1+ root = true
2+
3+ [* .rs ]
4+ end_of_line = lf
5+ insert_final_newline = true
6+ trim_trailing_whitespace = true
7+ indent_style = tab
8+ tab_width = 4
Original file line number Diff line number Diff line change @@ -65,22 +65,22 @@ macro_rules! content_codings {
6565 #[ allow( non_upper_case_globals) ]
6666 pub const $name: ContentCoding = ContentCoding :: new_known(
6767 $c,
68- $c,
68+ $c,
6969 None ,
7070 ) ;
7171 ) +
72-
72+
7373 /// Returns `true` if this ContentCoding is known to Rocket. In other words,
7474 /// returns `true` if there is an associated constant for `self`.
7575 pub fn is_known( & self ) -> bool {
7676 if let Source :: Known ( _) = self . source {
7777 return true ;
7878 }
79-
79+
8080 $( if self . $check( ) { return true } ) +
8181 false
8282 }
83-
83+
8484 $(
8585 /// Returns `true` if the top-level and sublevel types of
8686 /// `self` are the same as those of
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ macro_rules! known_content_codings {
33 Any ( is_any) : "any content coding" , "*" ,
44 // BR (is_br): "Brotli Compressed Data Format", "br",
55 // COMPRESS (is_compress): "UNIX \"compress\" data format", "compress",
6- // DEFLATE (is_deflate): "\"deflate\" compressed data inside the \"zlib\" data format", "deflate",
6+ // DEFLATE (is_deflate): "\"deflate\" compressed data inside the \"zlib\"
7+ // data format", "deflate",
78 GZIP ( is_gzip) : "GZIP file format" , "gzip" ,
89 IDENTITY ( is_identity) : "Reserved" , "identity" ,
910 } )
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ mod test {
110110 fn check_params_do_parse ( ) {
111111 assert_parse ! ( "*; q=1" ) ;
112112 }
113-
113+
114114 #[ test]
115115 fn test_bad_parses ( ) {
116116 assert_no_parse ! ( "*; q=1;" ) ;
You can’t perform that action at this time.
0 commit comments