Skip to content

Commit d703741

Browse files
committed
wrap line to avoid style error
1 parent 2c502a0 commit d703741

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

core/http/src/header/content_coding.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

core/http/src/header/known_content_codings.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
})

core/http/src/parse/content_coding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;");

0 commit comments

Comments
 (0)