Skip to content

Commit

Permalink
fix cargo toml dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Dilly committed Dec 22, 2020
1 parent dee7f68 commit fbba2d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ anyhow = "1.0.36"
unicode-width = "0.1"
textwrap = "0.13"

[target.'cfg(target_os = "linux")'.dependencies]
[target.'cfg(all(target_family="unix",not(target_os="macos")))'.dependencies]
which = "4.0"

# pprof is not available on windows
Expand Down
6 changes: 2 additions & 4 deletions src/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ fn execute_copy_command(command: Command, text: &str) -> Result<()> {
Ok(())
}

#[cfg(target_family = "unix")]
#[cfg(not(target_os = "macos"))]
#[cfg(all(target_family = "unix", not(target_os = "macos")))]
fn gen_command(
path: impl AsRef<OsStr>,
xclip_syntax: bool,
Expand All @@ -46,8 +45,7 @@ fn gen_command(
c
}

#[cfg(target_family = "unix")]
#[cfg(not(target_os = "macos"))]
#[cfg(all(target_family = "unix", not(target_os = "macos")))]
pub fn copy_string(string: &str) -> Result<()> {
use std::path::PathBuf;
use which::which;
Expand Down

0 comments on commit fbba2d0

Please sign in to comment.