mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 14:24:18 +08:00
Fix possible panic in web generator
This commit is contained in:
parent
d5b63b1f01
commit
49a1cbd938
@ -196,7 +196,7 @@ pub fn generate_html_pkg(
|
||||
</html>"#,
|
||||
network_size = format_size(package.network_size),
|
||||
storage_size = format_size(package.storage_size),
|
||||
published_short = &package.time_identifier[0..10],
|
||||
published_short = &package.time_identifier.get(0..10).unwrap_or("-"),
|
||||
published = package.time_identifier,
|
||||
blake3 = package.blake3,
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user