From de72fc3998acfea5b0ac4805348e53ff47b8af25 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 30 Oct 2026 16:17:23 -0700 Subject: [PATCH] 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. --- apps/vectorcraft/src/clipboard.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/vectorcraft/src/clipboard.rs b/apps/vectorcraft/src/clipboard.rs index aafb42b9b..08bb6aa8a 100644 --- a/apps/vectorcraft/src/clipboard.rs +++ b/apps/vectorcraft/src/clipboard.rs @@ -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 {