diff --git a/build.rs b/build.rs index 21e0990..9304eb9 100644 --- a/build.rs +++ b/build.rs @@ -90,11 +90,14 @@ fn main() -> Result<(), Box> { Ok(()) } - +/// Downloads files and returns the file if it was able to be downloaded /// # Panics /// panics if no response or response lacks "content-disposition" header /// # Errors -/// errors if literally anything happens that could be bad +/// errors if +/// A: unable to get `TlsConnector` +/// B: A File is unable to be create +/// C: or if the reader is unable to be copied into the writer pub fn download_files(path: &Path,url: &str) -> Result> { let agent = AgentBuilder::new() .tls_connector(Arc::new(native_tls::TlsConnector::new()?))