From 4c2859ae7c9e069db5e259b7e55bd0f1c499d254 Mon Sep 17 00:00:00 2001 From: Luna Yao <40349250+ZnqbuZ@users.noreply.github.com> Date: Mon, 4 May 2026 03:51:47 +0200 Subject: [PATCH] upgrade optionize to 0.2 --- easytier/Cargo.toml | 2 +- easytier/src/common/config.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 {