aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/downloader')
-rw-r--r--crates/shirabe/src/downloader/gzip_downloader.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/downloader/gzip_downloader.rs b/crates/shirabe/src/downloader/gzip_downloader.rs
index f59fe11..aefc6f9 100644
--- a/crates/shirabe/src/downloader/gzip_downloader.rs
+++ b/crates/shirabe/src/downloader/gzip_downloader.rs
@@ -52,16 +52,16 @@ impl GzipDownloader {
fn extract_using_ext(&self, file: &str, target_filepath: &str) {
let archive_file = gzopen(file, "rb");
- let target_file = fopen(target_filepath, "wb");
+ let target_file = fopen(target_filepath, "wb").unwrap();
loop {
let string = gzread(archive_file.clone(), 4096);
if string.is_empty() {
break;
}
- fwrite(target_file.clone(), &string, Platform::strlen(&string));
+ fwrite(&target_file, &string, Some(Platform::strlen(&string)));
}
gzclose(archive_file);
- fclose(target_file);
+ fclose(&target_file);
}
}