Skip to content

Commit

Permalink
Fix issue where configuration files not containing RAM are rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 committed May 21, 2024
1 parent 7130ee2 commit 4a2b71e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "quickemu-rs"
version = "0.6.0"
version = "0.6.1"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub struct ConfigFile {
pub network: Network,
pub port_forwards: Option<Vec<PortForward>>,
pub public_dir: Option<String>,
#[serde(deserialize_with = "deserialize_size")]
#[serde(deserialize_with = "deserialize_size", default)]
pub ram: Option<u64>,
#[serde(default, skip_serializing_if = "is_default")]
pub tpm: bool,
Expand Down

0 comments on commit 4a2b71e

Please sign in to comment.