mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 02:44:24 +01:00
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:
1 parent
7b95f9c059
commit
de72fc3998
1 file changed
+1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user