aweinstock314 / rust-clipboard

System Clipboard interfacing library in Rust
Apache License 2.0
365 stars 75 forks source link

Getting Err value on provider.get_contents().unwrap() #66

Closed uglyluigi closed 4 years ago

uglyluigi commented 5 years ago

The (WindowsClipboardContext) clipboard provider, on calling get_contents(), returns an Err value with code 0 and a message saying "The operation completed successfully." This makes it impossible to unwrap() the contents and use them although the clipboard provider appears to have successfully captured the clipboard.

Windows 10, Rust 2018 edition.

kovaxis commented 4 years ago

I believe this happens when the clipboard is empty.