Skip to content

Commit f0fdc74

Browse files
[autofix.ci] apply automated fixes
1 parent 8749adb commit f0fdc74

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

mitmproxy-contentviews/src/grpc.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ mod tests {
7676

7777
const TEST_YAML: &str = "1: 150\n\n---\n\n1: 150\n";
7878
const TEST_GRPC: &[u8] = &[
79-
0, 0, 0, 0, 3, 8, 150, 1, // first message
80-
0, 0, 0, 0, 3, 8, 150, 1, // second message
79+
0, 0, 0, 0, 3, 8, 150, 1, // first message
80+
0, 0, 0, 0, 3, 8, 150, 1, // second message
8181
];
8282

8383
#[test]
@@ -100,7 +100,19 @@ mod tests {
100100

101101
#[test]
102102
fn test_render_priority() {
103-
assert_eq!(GRPC.render_priority(b"", &TestMetadata::default().with_content_type("application/grpc")), 1.0);
104-
assert_eq!(GRPC.render_priority(b"", &TestMetadata::default().with_content_type("text/plain")), 0.0);
103+
assert_eq!(
104+
GRPC.render_priority(
105+
b"",
106+
&TestMetadata::default().with_content_type("application/grpc")
107+
),
108+
1.0
109+
);
110+
assert_eq!(
111+
GRPC.render_priority(
112+
b"",
113+
&TestMetadata::default().with_content_type("text/plain")
114+
),
115+
0.0
116+
);
105117
}
106118
}

mitmproxy-contentviews/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,4 @@ pub mod test {
7070
self.content_type.as_deref()
7171
}
7272
}
73-
74-
7573
}

0 commit comments

Comments
 (0)