1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

Unwrap on entry

This commit is contained in:
RGBCube 2023-12-31 13:53:44 +03:00
parent 820b48fa7a
commit 5282e33e54
No known key found for this signature in database

View file

@ -26,12 +26,7 @@ static ASSETS: LazyLock<HashMap<String, Bytes>> = LazyLock::new(|| {
let mut assets = HashMap::new(); let mut assets = HashMap::new();
for entry in archive.entries().unwrap() { for entry in archive.entries().unwrap() {
let mut entry = if let Ok(entry) = entry { let mut entry = entry.unwrap();
entry
} else {
log::error!("fail");
continue;
};
let path = entry.path_bytes(); let path = entry.path_bytes();
let path = String::from_utf8(path.to_vec()).unwrap(); let path = String::from_utf8(path.to_vec()).unwrap();