mirror of
https://github.com/zerotier/DesktopUI.git
synced 2026-05-22 16:26:46 -07:00
Fix compile targets for macOS implementation of copy_to_clipboard
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user