upgrade optionize to 0.2

This commit is contained in:
Luna Yao
2026-05-04 03:51:47 +02:00
parent c9e610a175
commit 4c2859ae7c
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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"
+4 -4
View File
@@ -38,7 +38,7 @@ use tokio::io::AsyncReadExt as _;
)]
pub struct ConfigBase<Raw, Parsed, Data = ()>
where
Raw: Optionized<Parsed>,
Raw: Optionized<Subject = Parsed>,
ConfigBase<Raw, Parsed, Data>: TryFrom<Raw>,
{
#[deref]
@@ -53,7 +53,7 @@ where
impl<Raw, Parsed, Data> Serialize for ConfigBase<Raw, Parsed, Data>
where
Raw: Optionized<Parsed> + Serialize,
Raw: Optionized<Subject = Parsed> + Serialize,
ConfigBase<Raw, Parsed, Data>: TryFrom<Raw, Error: Debug>,
{
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
@@ -66,7 +66,7 @@ where
impl<Raw, Parsed, Data> Default for ConfigBase<Raw, Parsed, Data>
where
Raw: Optionized<Parsed> + Default,
Raw: Optionized<Subject = Parsed> + Default,
ConfigBase<Raw, Parsed, Data>: TryFrom<Raw, Error: Debug>,
{
fn default() -> Self {
@@ -76,7 +76,7 @@ where
impl<Raw, Parsed, Data> ConfigBase<Raw, Parsed, Data>
where
Raw: Optionized<Parsed>,
Raw: Optionized<Subject = Parsed>,
ConfigBase<Raw, Parsed, Data>: TryFrom<Raw, Error: Debug>,
{
pub fn into_parsed(self) -> Parsed {