diff options
author | Stephan Dilly <dilly.stephan@gmail.com> | 2020-11-01 11:39:55 +0100 |
---|---|---|
committer | Stephan Dilly <dilly.stephan@gmail.com> | 2020-11-01 11:39:55 +0100 |
commit | 33de4f3f771a1be8927192274d026d085a778e25 (patch) | |
tree | 833ab7fa3e3da014beb5f668cfdf38cfe1694912 | |
parent | 632f2555487efb52ee3543de0be03f16d49e9a46 (diff) |
fix warnings
-rw-r--r-- | src/clipboard.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<OsStr>, xclip_syntax: bool, |