fix: cfg unix forbidden in rust .82
Some checks are pending
Install.sh / build (push) Waiting to run
Linux / build (push) Waiting to run
MacOS / build (push) Waiting to run
Windows / build (push) Waiting to run

This commit is contained in:
veeso
2024-10-21 10:32:50 +02:00
parent 11559d0962
commit 69f821baef
22 changed files with 95 additions and 95 deletions

View File

@@ -69,7 +69,7 @@ impl AuthActivity {
self.mount_kube_namespace(FormTab::HostBridge, "");
self.mount_kube_username(FormTab::HostBridge, "");
self.mount_smb_share(FormTab::HostBridge, "");
#[cfg(unix)]
#[cfg(posix)]
self.mount_smb_workgroup(FormTab::HostBridge, "");
self.mount_webdav_uri(FormTab::HostBridge, "");
@@ -102,7 +102,7 @@ impl AuthActivity {
self.mount_kube_namespace(FormTab::Remote, "");
self.mount_kube_username(FormTab::Remote, "");
self.mount_smb_share(FormTab::Remote, "");
#[cfg(unix)]
#[cfg(posix)]
self.mount_smb_workgroup(FormTab::Remote, "");
self.mount_webdav_uri(FormTab::Remote, "");
@@ -1042,7 +1042,7 @@ impl AuthActivity {
.is_ok());
}
#[cfg(unix)]
#[cfg(posix)]
pub(super) fn mount_smb_workgroup(&mut self, form_tab: FormTab, workgroup: &str) {
let color = self.theme().auth_address;
let id = Self::form_tab_id(form_tab, AuthFormId::SmbWorkgroup);
@@ -1130,7 +1130,7 @@ impl AuthActivity {
}
/// Collect s3 input values from view
#[cfg(unix)]
#[cfg(posix)]
pub(super) fn get_smb_params_input(&self, form_tab: FormTab) -> SmbParams {
let share: String = self.get_input_smb_share(form_tab);
let workgroup: Option<String> = self.get_input_smb_workgroup(form_tab);
@@ -1394,7 +1394,7 @@ impl AuthActivity {
}
}
#[cfg(unix)]
#[cfg(posix)]
pub(super) fn get_input_smb_workgroup(&self, form_tab: FormTab) -> Option<String> {
match self
.app
@@ -1494,7 +1494,7 @@ impl AuthActivity {
.unwrap_or_default()
)
}
#[cfg(unix)]
#[cfg(posix)]
ProtocolParams::Smb(params) => {
let username: String = match params.username {
None => String::default(),
@@ -1749,7 +1749,7 @@ impl AuthActivity {
}
}
#[cfg(unix)]
#[cfg(posix)]
fn get_host_bridge_smb_view(&self) -> [Id; 4] {
match self.app.focus() {
Some(
@@ -1796,7 +1796,7 @@ impl AuthActivity {
}
}
#[cfg(unix)]
#[cfg(posix)]
fn get_remote_smb_view(&self) -> [Id; 4] {
match self.app.focus() {
Some(