We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.ok().expect()
1 parent b4da96b commit fe70417Copy full SHA for fe70417
src/lib.rs
@@ -146,7 +146,7 @@ mod tests {
146
assert_eq!(req.content_length(), None);
147
assert_eq!(req.headers().len(), 0);
148
let mut s = String::new();
149
- req.body().read_to_string(&mut s).ok().expect("No body");
+ req.body().read_to_string(&mut s).expect("No body");
150
assert_eq!(s, "".to_string());
151
}
152
@@ -158,7 +158,7 @@ mod tests {
158
assert_eq!(req.method(), Method::POST);
159
assert_eq!(req.path(), "/articles");
160
161
162
assert_eq!(s, "Hello world".to_string());
163
assert_eq!(req.content_length(), Some(11));
164
0 commit comments