File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -398,11 +398,11 @@ impl Client {
398398 )
399399 . await ;
400400
401- if let Ok ( auth_result) = result {
402- if auth_result. success ( ) {
403- auth_success = true ;
404- break ;
405- }
401+ if let Ok ( auth_result) = result
402+ && auth_result. success ( )
403+ {
404+ auth_success = true ;
405+ break ;
406406 }
407407 }
408408
@@ -613,6 +613,7 @@ impl Client {
613613 }
614614
615615 /// Helper function to recursively upload directory contents
616+ #[ allow( clippy:: only_used_in_recursion) ]
616617 fn upload_dir_recursive < ' a > (
617618 & ' a self ,
618619 sftp : & ' a SftpSession ,
@@ -699,6 +700,7 @@ impl Client {
699700 }
700701
701702 /// Helper function to recursively download directory contents
703+ #[ allow( clippy:: only_used_in_recursion) ]
702704 fn download_dir_recursive < ' a > (
703705 & ' a self ,
704706 sftp : & ' a SftpSession ,
You can’t perform that action at this time.
0 commit comments