File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1177,17 +1177,18 @@ mod tests {
1177
1177
let mut builder = auto:: Builder :: new ( TokioExecutor :: new ( ) ) ;
1178
1178
if h1_only {
1179
1179
builder = builder. http1_only ( ) ;
1180
- builder. serve_connection ( stream, service_fn ( hello) ) . await ;
1180
+ builder. serve_connection ( stream, service_fn ( hello) ) . await
1181
1181
} else if h2_only {
1182
1182
builder = builder. http2_only ( ) ;
1183
- builder. serve_connection ( stream, service_fn ( hello) ) . await ;
1183
+ builder. serve_connection ( stream, service_fn ( hello) ) . await
1184
1184
} else {
1185
1185
builder
1186
1186
. http2 ( )
1187
1187
. max_header_list_size ( 4096 )
1188
1188
. serve_connection_with_upgrades ( stream, service_fn ( hello) )
1189
- . await ;
1189
+ . await
1190
1190
}
1191
+ . unwrap ( ) ;
1191
1192
} ) ;
1192
1193
}
1193
1194
} ) ;
You can’t perform that action at this time.
0 commit comments