Fix compile targets for macOS implementation of copy_to_clipboard

This commit is contained in:
Grant Limberg
2021-11-10 11:37:45 -08:00
parent e3e5e8db73
commit f82ca21c2e
-1
View File
@@ -229,7 +229,6 @@ fn read_from_clipboard() -> String {
Command::new("/usr/bin/xclip").output().map_or_else(|_| String::new(), |out| String::from_utf8(out.stdout).map_or_else(|_| String::new(), |s| s))
}
#[cfg(windows)]
#[cfg(target_os = "macos")]
fn copy_to_clipboard(s: &str) {
let _ = Command::new("/usr/bin/pbcopy").stdin(Stdio::piped()).stdout(Stdio::inherit()).stderr(Stdio::inherit()).spawn().map(|mut c| {