Fix bug when compiling on non-linux system

This commit is contained in:
Aloxaf 2019-07-14 23:22:32 +08:00
parent 975b4ba8fc
commit b42be97f64
1 changed files with 1 additions and 1 deletions

View File

@ -281,5 +281,5 @@ pub fn dump_image_to_clipboard(image: &DynamicImage) -> Result<(), Error> {
#[cfg(not(target_os = "linux"))]
pub fn dump_image_to_clipboard(image: &DynamicImage) -> Result<(), Error> {
format_err!("This feature hasn't been implemented in your system")
Err(format_err!("This feature hasn't been implemented in your system"))
}