From 33de4f3f771a1be8927192274d026d085a778e25 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sun, 1 Nov 2020 11:39:55 +0100 Subject: [PATCH] fix warnings --- src/clipboard.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/clipboard.rs b/src/clipboard.rs index 5f15e11f..7270d89b 100644 --- a/src/clipboard.rs +++ b/src/clipboard.rs @@ -1,4 +1,5 @@ use anyhow::Result; +#[cfg(target_os = "linux")] use std::ffi::OsStr; use std::io::Write; use std::process::{Command, Stdio}; @@ -28,6 +29,7 @@ fn execute_copy_command(command: Command, text: &str) -> Result<()> { Ok(()) } +#[cfg(target_os = "linux")] fn gen_command( path: impl AsRef, xclip_syntax: bool,