From f41e356a2dffed1cce96205314cb77f49e05a6ca Mon Sep 17 00:00:00 2001 From: Brad Culwell Date: Tue, 25 Jun 2024 21:14:42 +0000 Subject: [PATCH] fix(clipboard): fix clipboard on windows --- src/clip.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/clip.rs b/src/clip.rs index 7cedf1b..1c14272 100644 --- a/src/clip.rs +++ b/src/clip.rs @@ -1,4 +1,7 @@ -use arboard::{Clipboard, GetExtLinux, LinuxClipboardKind, SetExtLinux}; +#[cfg(target_os = "linux")] +use arboard::{GetExtLinux, LinuxClipboardKind, SetExtLinux as _}; + +use arboard::Clipboard; use base64::Engine; use serde::{Deserialize, Serialize}; @@ -12,6 +15,7 @@ pub enum Selection { Secondary, } +#[cfg(target_os = "linux")] impl Selection { fn get_kind(&self) -> LinuxClipboardKind { match self {