patch: fix macos clipboard

1. wrong namings of NsPasteboard
2. wrap Pasteboard in Lazy

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
ClSlaid
2023-10-29 03:30:15 +08:00
parent 7880cba0f9
commit 36d4baaa8e
4 changed files with 16 additions and 20 deletions

View File

@@ -24,10 +24,10 @@ libc = {version = "0.2"}
dashmap = "5.5"
percent-encoding = "2.3"
utf16string = "0.2"
once_cell = "1.18"
[target.'cfg(target_os = "linux")'.dependencies]
x11-clipboard = {git="https://github.com/clslaid/x11-clipboard", branch = "feat/store-batch"}
once_cell = "1.18"
x11rb = {version = "0.12", features = ["all-extensions"]}
[target.'cfg(target_os = "macos")'.dependencies]