mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
Unwrap on entry
This commit is contained in:
parent
820b48fa7a
commit
5282e33e54
1 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue