Clipboard: TEXT_ONLY is built on Linux only

The constant is used only by the Linux Wayland arms, so on macOS it is
dead code and `cargo clippy -p vectorcraft --all-targets -- -D warnings`
fails with "constant `TEXT_ONLY` is never used". Gate it with
`#[cfg(target_os = "linux")]`, as the `Wayland` variant beside it is.
This commit is contained in:
dotCooCoo
2026-10-31 06:28:35 +07:00
committed by bflatastic
parent 7b95f9c059
commit de72fc3998
+1
View File
@@ -339,6 +339,7 @@ mod portable {
}
/// What a write of a picture says where the clipboard carries text only.
#[cfg(target_os = "linux")]
const TEXT_ONLY: &str = "this clipboard carries text only";
impl Backend {