@@ -90,13 +90,13 @@ impl server::Handler for SshServer {
9090 // TODO handler ProtocolError
9191 let res = smart_protocol. git_info_refs ( & self . state ) . await . unwrap ( ) ;
9292 self . smart_protocol = Some ( smart_protocol) ;
93- session. data ( channel, res. to_vec ( ) . into ( ) ) ?;
93+ session. data ( channel, res. to_vec ( ) ) ?;
9494 session. channel_success ( channel) ?;
9595 }
9696 //Note that currently mega does not support pure ssh to transfer files, still relay on the https server.
9797 //see https://github.com/git-lfs/git-lfs/blob/main/docs/proposals/ssh_adapter.md for more details about pure ssh file transfer.
9898 "git-lfs-transfer" => {
99- session. data ( channel, "not implemented yet" . as_bytes ( ) . to_vec ( ) . into ( ) ) ?;
99+ session. data ( channel, "not implemented yet" . as_bytes ( ) . to_vec ( ) ) ?;
100100 }
101101 // When connecting over SSH, the first attempt will be made to use
102102 // `git-lfs-transfer`, the pure SSH protocol, and if it fails, Git LFS will fall
@@ -114,7 +114,7 @@ impl server::Handler for SshServer {
114114 expire_time. to_rfc3339 ( )
115115 } ,
116116 } ;
117- session. data ( channel, serde_json:: to_vec ( & link) . unwrap ( ) . into ( ) ) ?;
117+ session. data ( channel, serde_json:: to_vec ( & link) . unwrap ( ) ) ?;
118118 }
119119 command => tracing:: error!( "Not Supported command! {}" , command) ,
120120 }
@@ -205,7 +205,7 @@ impl SshServer {
205205
206206 tracing:: info!( "buf is {:?}" , buf) ;
207207 session
208- . data ( channel, String :: from_utf8 ( buf. to_vec ( ) ) . unwrap ( ) . into ( ) )
208+ . data ( channel, String :: from_utf8 ( buf. to_vec ( ) ) . unwrap ( ) )
209209 . unwrap ( ) ;
210210
211211 while let Some ( chunk) = send_pack_data. next ( ) . await {
@@ -218,11 +218,11 @@ impl SshServer {
218218 break ;
219219 }
220220 let bytes_out = smart_protocol. build_side_band_format ( temp, length) ;
221- session. data ( channel, bytes_out. to_vec ( ) . into ( ) ) . unwrap ( ) ;
221+ session. data ( channel, bytes_out. to_vec ( ) ) . unwrap ( ) ;
222222 }
223223 }
224224 session
225- . data ( channel, smart:: PKT_LINE_END_MARKER . to_vec ( ) . into ( ) )
225+ . data ( channel, smart:: PKT_LINE_END_MARKER . to_vec ( ) )
226226 . unwrap ( ) ;
227227 }
228228
@@ -251,7 +251,7 @@ impl SshServer {
251251
252252 tracing:: info!( "report status: {:?}" , report_status) ;
253253 session
254- . data ( channel, report_status. to_vec ( ) . into ( ) )
254+ . data ( channel, report_status. to_vec ( ) )
255255 . unwrap ( ) ;
256256 }
257257}
0 commit comments