diff --git a/easytier/Cargo.toml b/easytier/Cargo.toml index fc267635..8a5a63cf 100644 --- a/easytier/Cargo.toml +++ b/easytier/Cargo.toml @@ -51,7 +51,7 @@ toml = "0.8.12" chrono = { version = "0.4.37", features = ["serde"] } getset = "0.1.6" -optionize = "0.1" +optionize = "0.2" guarden = "0.1" diff --git a/easytier/src/common/config.rs b/easytier/src/common/config.rs index aa5a77ef..7398b82d 100644 --- a/easytier/src/common/config.rs +++ b/easytier/src/common/config.rs @@ -38,7 +38,7 @@ use tokio::io::AsyncReadExt as _; )] pub struct ConfigBase where - Raw: Optionized, + Raw: Optionized, ConfigBase: TryFrom, { #[deref] @@ -53,7 +53,7 @@ where impl Serialize for ConfigBase where - Raw: Optionized + Serialize, + Raw: Optionized + Serialize, ConfigBase: TryFrom, { fn serialize(&self, serializer: S) -> Result @@ -66,7 +66,7 @@ where impl Default for ConfigBase where - Raw: Optionized + Default, + Raw: Optionized + Default, ConfigBase: TryFrom, { fn default() -> Self { @@ -76,7 +76,7 @@ where impl ConfigBase where - Raw: Optionized, + Raw: Optionized, ConfigBase: TryFrom, { pub fn into_parsed(self) -> Parsed {