mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
Update backend/src/s9pk/header.rs
Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>
This commit is contained in:
@@ -95,10 +95,7 @@ impl TableOfContents {
|
||||
self.docker_images
|
||||
.serialize_entry("docker_images", &mut writer)?;
|
||||
self.assets.serialize_entry("assets", &mut writer)?;
|
||||
match self.scripts {
|
||||
None => FileSection::default().serialize_entry("scripts", &mut writer),
|
||||
Some(a) => a.serialize_entry("scripts", &mut writer),
|
||||
};
|
||||
self.scripts.unwrap_or_default().serialize_entry("scripts", &mut writer)?;
|
||||
Ok(())
|
||||
}
|
||||
pub async fn deserialize<R: AsyncRead + Unpin>(mut reader: R) -> std::io::Result<Self> {
|
||||
|
||||
Reference in New Issue
Block a user