mirror of
https://github.com/MedzikUser/imgurs
synced 2024-08-15 00:03:19 +00:00
fix: fix clipboard on windows and macos
This commit is contained in:
parent
fb72dc1112
commit
aac9819bc5
4 changed files with 9 additions and 4 deletions
|
@ -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
2
Cargo.lock
generated
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue