This commit is contained in:
Michael Zhang 2018-05-29 18:09:07 -07:00
parent 4dd9fe288e
commit c123d0ad21
No known key found for this signature in database
GPG key ID: A1B65B603268116B
2 changed files with 8 additions and 1 deletions

6
.drone.yml Normal file
View file

@ -0,0 +1,6 @@
pipeline:
build:
image: rust:1.25.0
commands:
- cargo check
- cargo build --release

View file

@ -75,8 +75,9 @@ pub fn capture(options: Options) -> Result<(), Error> {
match Clipboard::get_default(&display) {
Some(clipboard) => {
clipboard.set_image(&pixbuf);
clipboard.store();
}
None => (),
None => eprintln!("Failed to copy to the clipboard."),
}
}
Ok(())