added cfg smb-windows to be able to disable SMB on windows (#210)

* added cfg smb-windows to be able to disable SMB on windows

* lint
This commit is contained in:
Christian Visintin
2023-08-20 10:24:34 +02:00
committed by GitHub
parent 2f48c765e3
commit 9de171fb83
4 changed files with 9 additions and 8 deletions

View File

@@ -140,7 +140,7 @@ impl Builder {
}
}
#[cfg(windows)]
#[cfg(smb_windows)]
fn smb_client(params: SmbParams) -> SmbFs {
let mut credentials = SmbCredentials::new(params.address, params.share);