Skip to content

Commit 48703da

Browse files
committed
wip
1 parent 0ee112b commit 48703da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmarks/src/routing.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ fn generate_matching_requests<'c>(client: &'c Client, routes: &[Route]) -> Vec<L
5858
.join("&");
5959

6060
let uri = format!("/{}?{}", path, query);
61-
let mut req = client.req(route.method, uri);
61+
let mut req = client.req(route.method.unwrap(), uri);
6262
if let Some(ref format) = route.format {
63-
if let Some(true) = route.method.allows_request_body() {
63+
if let Some(true) = route.method.and_then(|m| m.allows_request_body()) {
6464
req.add_header(ContentType::from(format.clone()));
6565
} else {
6666
req.add_header(Accept::from(format.clone()));

0 commit comments

Comments
 (0)