Skip to content

Commit 037f2cc

Browse files
committed
fix: resolve clippy warnings for CI compliance
1 parent be1ad14 commit 037f2cc

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/ssh/tokio_client/client.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)