fix: fix clipboard on windows and macos

This commit is contained in:
MedzikUser 2022-05-18 21:25:35 +02:00
parent fb72dc1112
commit aac9819bc5
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
4 changed files with 9 additions and 4 deletions

View File

@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] ## [Unreleased]
## [0.7.4] - 2022-05-18
### HOTFIX
- fixed built on macos and windows
## [0.7.3] - 2022-05-18 ## [0.7.3] - 2022-05-18
### Library ### Library
- add code comments and tests - add code comments and tests
@ -115,7 +119,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- upload image - upload image
<!-- next-url --> <!-- next-url -->
[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.3]: https://github.com/MedzikUser/imgurs/commits/v0.7.3
[0.7.2]: https://github.com/MedzikUser/imgurs/commits/v0.7.2 [0.7.2]: https://github.com/MedzikUser/imgurs/commits/v0.7.2
[0.7.1]: https://github.com/MedzikUser/imgurs/commits/v0.7.1 [0.7.1]: https://github.com/MedzikUser/imgurs/commits/v0.7.1

2
Cargo.lock generated
View File

@ -845,7 +845,7 @@ dependencies = [
[[package]] [[package]]
name = "imgurs" name = "imgurs"
version = "0.7.3" version = "0.7.4"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"arboard", "arboard",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "imgurs" name = "imgurs"
version = "0.7.3" version = "0.7.4"
description = "API and CLI for Imgur" description = "API and CLI for Imgur"
license = "BSD-3-Clause" license = "BSD-3-Clause"
readme = "README.md" readme = "README.md"

View File

@ -81,5 +81,5 @@ pub fn set_clipboard(content: &str) {
)))] )))]
pub fn set_clipboard(content: &str) { pub fn set_clipboard(content: &str) {
let mut clipboard = arboard::Clipboard::new().unwrap(); let mut clipboard = arboard::Clipboard::new().unwrap();
clipboard.set_text(content).unwrap(); clipboard.set_text(content.to_string()).unwrap();
} }