Skip to content

Commit

Permalink
Upgrade all dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mcobzarenco committed Jul 18, 2020
1 parent d0ec22b commit 8e1b79f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ keywords = ["clipboard"]
readme = "README.md"

[target.'cfg(windows)'.dependencies]
clipboard-win = "2.0.0"
clipboard-win = "3.1.1"

[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2"
objc_id = "0.1"
objc-foundation = "0.1"
objc = "0.2.7"
objc_id = "0.1.1"
objc-foundation = "0.1.1"

[target.'cfg(any(target_os = "linux", target_os = "openbsd"))'.dependencies]
x11-clipboard = "0.3.0-alpha.1"
x11-clipboard = "0.5.1"
6 changes: 5 additions & 1 deletion src/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ impl Clipboard for WindowsClipboard {
}

fn get_string_contents(&self) -> Result<String, ClipboardError> {
SystemClipboard::new()?.get_string().map_err(|e| e.into())
let mut contents = String::new();
SystemClipboard::new()?
.get_string(&mut contents)
.map_err(|e| e.into());
Ok(contents)
}

fn set_contents(
Expand Down

0 comments on commit 8e1b79f

Please sign in to comment.