File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ pub async fn connect_uds<P: AsRef<Path>, Ws: WithSocket>(
302
302
303
303
let stream = Async :: < UnixStream > :: connect ( path) . await ?;
304
304
305
- Ok ( with_socket. with_socket ( stream) . await )
305
+ return Ok ( with_socket. with_socket ( stream) . await ) ;
306
306
}
307
307
308
308
#[ cfg( feature = "_rt-async-std" ) ]
@@ -312,10 +312,11 @@ pub async fn connect_uds<P: AsRef<Path>, Ws: WithSocket>(
312
312
313
313
let stream = Async :: < UnixStream > :: connect ( path) . await ?;
314
314
315
- Ok ( with_socket. with_socket ( stream) . await )
315
+ return Ok ( with_socket. with_socket ( stream) . await ) ;
316
316
}
317
317
318
318
#[ cfg( not( all( feature = "_rt-async-global-executor" , feature = "_rt-async-std" ) ) ) ]
319
+ #[ allow( unreachable_code) ]
319
320
{
320
321
crate :: rt:: missing_rt ( ( path, with_socket) )
321
322
}
You can’t perform that action at this time.
0 commit comments