Skip to content

Commit 50746f3

Browse files
committed
rustfmt
1 parent 8d44d8c commit 50746f3

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

tests/client_tests.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ mod mock {
122122
// Request
123123
assert_eq!(response.request.method(), http::Method::POST);
124124
assert_eq!(response.request.url().path(), "/api/v2/podcasts");
125-
let mut p = form_urlencoded::parse(response.request.body().unwrap().as_bytes().unwrap());
125+
let mut p =
126+
form_urlencoded::parse(response.request.body().unwrap().as_bytes().unwrap());
126127
assert_eq!(p.count(), 1);
127128
assert_eq!(
128129
p.next(),
@@ -150,11 +151,13 @@ mod mock {
150151
// Response
151152
let body = response.json().await.unwrap();
152153
assert!(body.is_object());
153-
assert!(body["podcast"].as_object().unwrap()["rss"]
154-
.as_str()
155-
.unwrap()
156-
.len()
157-
> 0);
154+
assert!(
155+
body["podcast"].as_object().unwrap()["rss"]
156+
.as_str()
157+
.unwrap()
158+
.len()
159+
> 0
160+
);
158161
});
159162
}
160163

@@ -170,7 +173,8 @@ mod mock {
170173
// Request
171174
assert_eq!(response.request.method(), http::Method::POST);
172175
assert_eq!(response.request.url().path(), "/api/v2/episodes");
173-
let mut p = form_urlencoded::parse(response.request.body().unwrap().as_bytes().unwrap());
176+
let mut p =
177+
form_urlencoded::parse(response.request.body().unwrap().as_bytes().unwrap());
174178
assert_eq!(p.count(), 1);
175179
assert_eq!(
176180
p.next(),

0 commit comments

Comments
 (0)