From e81b531d0e703a5720b488b5d72eed1070bd6892 Mon Sep 17 00:00:00 2001 From: gallant Date: Sun, 9 Apr 2023 22:09:46 -0500 Subject: [PATCH] fixed professionalism lolz --- build.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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()?))