Skip to content

Commit

Permalink
Fixed unhandled Result
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastián Aedo committed Aug 30, 2020
1 parent 2bb6d82 commit b4a4216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ pub fn dump_image_to_clipboard(image: &DynamicImage) -> Result<(), Error> {
image.write_to(&mut temp, ImageOutputFormat::Bmp)?;

let _clip =
Clipboard::new_attempts(10).map_err(|e| format_err!("Couldn't open clipboard: {}", e));
Clipboard::new_attempts(10).map_err(|e| format_err!("Couldn't open clipboard: {}", e))?;

formats::Bitmap
.write_clipboard(&temp)
.map_err(|e| format_err!("Failed copy image: {}", e));
.map_err(|e| format_err!("Failed copy image: {}", e))?;
Ok(())
}

Expand Down

0 comments on commit b4a4216

Please sign in to comment.