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 {
11771177 let mut builder = auto:: Builder :: new ( TokioExecutor :: new ( ) ) ;
11781178 if h1_only {
11791179 builder = builder. http1_only ( ) ;
1180- builder. serve_connection ( stream, service_fn ( hello) ) . await ;
1180+ builder. serve_connection ( stream, service_fn ( hello) ) . await
11811181 } else if h2_only {
11821182 builder = builder. http2_only ( ) ;
1183- builder. serve_connection ( stream, service_fn ( hello) ) . await ;
1183+ builder. serve_connection ( stream, service_fn ( hello) ) . await
11841184 } else {
11851185 builder
11861186 . http2 ( )
11871187 . max_header_list_size ( 4096 )
11881188 . serve_connection_with_upgrades ( stream, service_fn ( hello) )
1189- . await ;
1189+ . await
11901190 }
1191+ . unwrap ( ) ;
11911192 } ) ;
11921193 }
11931194 } ) ;
You can’t perform that action at this time.
0 commit comments