From c123d0ad21e317eaf11a0807ced2e3b1b5db0047 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 29 May 2018 18:09:07 -0700 Subject: [PATCH] drone --- .drone.yml | 6 ++++++ src/capture.rs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e76b376 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,6 @@ +pipeline: + build: + image: rust:1.25.0 + commands: + - cargo check + - cargo build --release diff --git a/src/capture.rs b/src/capture.rs index cbf208d..11ba399 100644 --- a/src/capture.rs +++ b/src/capture.rs @@ -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(())