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

@@ -110,7 +110,7 @@ impl From<FileTransferParams> for Bookmark {
address: Some(params.address),
#[cfg(posix)]
port: Some(params.port),
#[cfg(windows)]
#[cfg(win)]
port: None,
username: params.username,
password: params.password,
@@ -172,7 +172,7 @@ impl From<Bookmark> for FileTransferParams {
Self::new(bookmark.protocol, ProtocolParams::Smb(params))
}
#[cfg(windows)]
#[cfg(win)]
FileTransferProtocol::Smb => {
let params = TransferSmbParams::new(
bookmark.address.unwrap_or_default(),
@@ -559,7 +559,7 @@ mod tests {
}
#[test]
#[cfg(windows)]
#[cfg(win)]
fn should_get_ftparams_from_smb_bookmark() {
let bookmark: Bookmark = Bookmark {
protocol: FileTransferProtocol::Smb,