File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
- use super :: { Command , Error , ForwardType , Socket } ;
1
+ use super :: { Command , Error } ;
2
2
3
3
use std:: ffi:: OsStr ;
4
4
use std:: os:: unix:: ffi:: OsStrExt ;
@@ -51,13 +51,17 @@ impl Session {
51
51
52
52
pub ( crate ) async fn request_port_forward (
53
53
& self ,
54
- forward_type : ForwardType ,
55
- listen_socket : Socket < ' _ > ,
56
- connect_socket : Socket < ' _ > ,
54
+ forward_type : crate :: ForwardType ,
55
+ listen_socket : crate :: Socket < ' _ > ,
56
+ connect_socket : crate :: Socket < ' _ > ,
57
57
) -> Result < ( ) , Error > {
58
58
Connection :: connect ( & self . ctl )
59
59
. await ?
60
- . request_port_forward ( forward_type, & listen_socket, & connect_socket)
60
+ . request_port_forward (
61
+ forward_type. into ( ) ,
62
+ & listen_socket. into ( ) ,
63
+ & connect_socket. into ( ) ,
64
+ )
61
65
. await ?;
62
66
63
67
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -322,9 +322,9 @@ impl Session {
322
322
) -> Result < ( ) , Error > {
323
323
delegate ! ( & self . 0 , imp, {
324
324
imp. request_port_forward(
325
- forward_type. into( ) . into ( ) ,
326
- listen_socket. into( ) . into ( ) ,
327
- connect_socket. into( ) . into ( ) ,
325
+ forward_type. into( ) ,
326
+ listen_socket. into( ) ,
327
+ connect_socket. into( ) ,
328
328
)
329
329
. await
330
330
} )
You can’t perform that action at this time.
0 commit comments