From aac9819bc59729e7d63f0944f47e2e79e4d4da2e Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Wed, 18 May 2022 21:25:35 +0200 Subject: [PATCH] fix: fix clipboard on windows and macos --- CHANGELOG.md | 7 ++++++- Cargo.lock | 2 +- Cargo.toml | 2 +- src/cli/clipboard.rs | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7439874..d1249c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [0.7.4] - 2022-05-18 +### HOTFIX +- fixed built on macos and windows + ## [0.7.3] - 2022-05-18 ### Library - add code comments and tests @@ -115,7 +119,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - upload image -[Unreleased]: https://github.com/MedzikUser/imgurs/compare/v0.7.3...HEAD +[Unreleased]: https://github.com/MedzikUser/imgurs/compare/v0.7.4...HEAD +[0.7.4]: https://github.com/MedzikUser/imgurs/commits/v0.7.4 [0.7.3]: https://github.com/MedzikUser/imgurs/commits/v0.7.3 [0.7.2]: https://github.com/MedzikUser/imgurs/commits/v0.7.2 [0.7.1]: https://github.com/MedzikUser/imgurs/commits/v0.7.1 diff --git a/Cargo.lock b/Cargo.lock index f87ac12..ee9ccfc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -845,7 +845,7 @@ dependencies = [ [[package]] name = "imgurs" -version = "0.7.3" +version = "0.7.4" dependencies = [ "anyhow", "arboard", diff --git a/Cargo.toml b/Cargo.toml index 521c55c..bef6c94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "imgurs" -version = "0.7.3" +version = "0.7.4" description = "API and CLI for Imgur" license = "BSD-3-Clause" readme = "README.md" diff --git a/src/cli/clipboard.rs b/src/cli/clipboard.rs index c5636ba..835312a 100644 --- a/src/cli/clipboard.rs +++ b/src/cli/clipboard.rs @@ -81,5 +81,5 @@ pub fn set_clipboard(content: &str) { )))] pub fn set_clipboard(content: &str) { let mut clipboard = arboard::Clipboard::new().unwrap(); - clipboard.set_text(content).unwrap(); + clipboard.set_text(content.to_string()).unwrap(); }