switch to cfg macro to get rid of warning on non-windows

This commit is contained in:
Theron Spiegl
2023-12-28 10:44:06 -06:00
parent 70ba345e67
commit f7e54f2e7a
2 changed files with 3 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
## Version 8 adds the option to send folders to Android and iOS
## Version 8 adds the option to send folders from Android and iOS
Android version is available [here](https://play.google.com/store/apps/details?id=dev.spiegl.flyingcarpet), or if you prefer to sideload, `android_FlyingCarpet.apk` is available on the [releases](https://github.com/spieglt/FlyingCarpet/releases) page.
iOS version [here](https://apps.apple.com/us/app/flying-carpet-file-transfer/id1637377410) or search the App Store for "Flying Carpet File Transfer".
Linux, macOS, and Windows versions available on the [releases](https://github.com/spieglt/FlyingCarpet/releases) page. Installers and standalone executable versions available.
Linux, macOS, and Windows versions are available on the [releases](https://github.com/spieglt/FlyingCarpet/releases) page. Installers and standalone executable versions available.
# Flying Carpet

View File

@@ -32,8 +32,7 @@ pub async fn send_file<T: UI>(
.strip_prefix(prefix)?
.to_string_lossy()
.to_string();
#[cfg(windows)]
{
if cfg!(windows) {
filename = filename.replace("\\", "/");
}
send_file_details(