fix: gg rust 1.82 for introducing a nice breaking change in config which was not mentioned in changelog
Some checks failed
Install.sh / build (push) Has been cancelled
Linux / build (push) Has been cancelled
MacOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled

This commit is contained in:
veeso
2024-10-21 11:09:50 +02:00
parent 69f821baef
commit e45c3d5b4e
11 changed files with 30 additions and 30 deletions

View File

@@ -271,7 +271,7 @@ impl AuthActivity {
InputMask::Generic => &Id::HostBridge(AuthFormId::RemoteDirectory),
#[cfg(posix)]
InputMask::Smb => &Id::HostBridge(AuthFormId::SmbWorkgroup),
#[cfg(windows)]
#[cfg(win)]
InputMask::Smb => &Id::HostBridge(AuthFormId::RemoteDirectory),
InputMask::AwsS3 => unreachable!("this shouldn't happen (password on s3)"),
InputMask::Kube => unreachable!("this shouldn't happen (password on kube)"),
@@ -287,7 +287,7 @@ impl AuthActivity {
InputMask::Generic => &Id::Remote(AuthFormId::RemoteDirectory),
#[cfg(posix)]
InputMask::Smb => &Id::Remote(AuthFormId::SmbWorkgroup),
#[cfg(windows)]
#[cfg(win)]
InputMask::Smb => &Id::Remote(AuthFormId::RemoteDirectory),
InputMask::AwsS3 => unreachable!("this shouldn't happen (password on s3)"),
InputMask::Kube => unreachable!("this shouldn't happen (password on kube)"),
@@ -402,7 +402,7 @@ impl AuthActivity {
InputMask::Generic => &Id::HostBridge(AuthFormId::Password),
#[cfg(posix)]
InputMask::Smb => &Id::HostBridge(AuthFormId::SmbWorkgroup),
#[cfg(windows)]
#[cfg(win)]
InputMask::Smb => &Id::HostBridge(AuthFormId::Password),
InputMask::Kube => &Id::HostBridge(AuthFormId::KubeClientKey),
InputMask::AwsS3 => &Id::HostBridge(AuthFormId::S3NewPathStyle),
@@ -418,7 +418,7 @@ impl AuthActivity {
InputMask::Generic => &Id::Remote(AuthFormId::Password),
#[cfg(posix)]
InputMask::Smb => &Id::Remote(AuthFormId::SmbWorkgroup),
#[cfg(windows)]
#[cfg(win)]
InputMask::Smb => &Id::Remote(AuthFormId::Password),
InputMask::Kube => &Id::Remote(AuthFormId::KubeClientKey),
InputMask::AwsS3 => &Id::Remote(AuthFormId::S3NewPathStyle),

View File

@@ -1147,7 +1147,7 @@ impl AuthActivity {
.workgroup(workgroup)
}
#[cfg(windows)]
#[cfg(win)]
pub(super) fn get_smb_params_input(&self, form_tab: FormTab) -> SmbParams {
let share: String = self.get_input_smb_share(form_tab);
@@ -1505,7 +1505,7 @@ impl AuthActivity {
params.address, params.port, params.share
)
}
#[cfg(windows)]
#[cfg(win)]
ProtocolParams::Smb(params) => {
let username: String = match params.username {
None => String::default(),
@@ -1843,7 +1843,7 @@ impl AuthActivity {
}
}
#[cfg(windows)]
#[cfg(win)]
fn get_host_bridge_smb_view(&self) -> [Id; 4] {
match self.app.focus() {
Some(
@@ -1878,7 +1878,7 @@ impl AuthActivity {
}
}
#[cfg(windows)]
#[cfg(win)]
fn get_remote_smb_view(&self) -> [Id; 4] {
match self.app.focus() {
Some(

View File

@@ -541,7 +541,7 @@ impl FileInfoPopup {
},
None => String::from("0"),
};
#[cfg(windows)]
#[cfg(win)]
let username: String = format!("{}", file.metadata().uid.unwrap_or(0));
// Group
#[cfg(posix)]
@@ -552,7 +552,7 @@ impl FileInfoPopup {
},
None => String::from("0"),
};
#[cfg(windows)]
#[cfg(win)]
let group: String = format!("{}", file.metadata().gid.unwrap_or(0));
texts
.add_row()

View File

@@ -500,7 +500,7 @@ impl FileTransferActivity {
FileExplorerTab::FindHostBridge => self.get_found_selected_entries(),
FileExplorerTab::Remote => self.get_remote_selected_entries(),
FileExplorerTab::FindRemote => self.get_found_selected_entries(),
#[cfg(windows)]
#[cfg(win)]
FileExplorerTab::HostBridge | FileExplorerTab::FindHostBridge => {
SelectedFile::None
}