Fixed build.

This commit is contained in:
Revertron
2021-04-19 15:44:54 +02:00
parent e8124ec211
commit d681d1a219
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -48,14 +48,14 @@ fn download_iana_zones(zones_name: &str, hashes_name: &str) {
Ok(mut file) => {
file.write_all(zones.trim().as_bytes()).expect("Error saving TLDs file!");
}
Err(e) => { println!("Error opening TLDs file!\n{}", e); }
Err(e) => { panic!("Error opening TLDs file!\n{}", e); }
}
match File::create(Path::new(hashes_name)) {
Ok(mut file) => {
file.write_all(hashes.trim().as_bytes()).expect("Error saving TLD-hashes file!");
}
Err(e) => { println!("Error opening TLD-hashes file!\n{}", e); }
Err(e) => { panic!("Error opening TLD-hashes file!\n{}", e); }
}
}