

error_chain! {
    links { }

    foreign_links {
        Io(::std::io::Error);
    }

    errors {
        HttpStatus(e: u32) {
            description("http request returned an unsuccessful status code")
            display("http request returned an unsuccessful status code: {}", e)
        }
        FileNotFound {
            description("file not found")
        }
        BackendUnavailable(be: &'static str) {
            description("download backend unavailable")
            display("download backend '{}' unavailable", be)
        }
    }
}



error_chain! {
    links { }

    foreign_links {
        Io(::std::io::Error) #[cfg(unix)];
    }

    errors {
        HttpStatus(e: u32) {
            description("http request returned an unsuccessful status code")
            display("http request returned an unsuccessful status code: {}", e)
        }
        FileNotFound {
            description("file not found")
        }
        BackendUnavailable(be: &'static str) {
            description("download backend unavailable")
            display("download backend '{}' unavailable", be)
        }
    }
}

--- 
+++ 
@@ -4,7 +4,7 @@
     links { }
 
     foreign_links {
-        Io(::std::io::Error) #[cfg(unix)];
+        Io(::std::io::Error);
     }
 
     errors {
Remove unix-only flag on std::io::Error error_chain foreign link

I don't know why I put it there in the first place
