diff --git a/yazi-config/src/keymap/control.rs b/yazi-config/src/keymap/control.rs index 739e59fa4..7b357b094 100644 --- a/yazi-config/src/keymap/control.rs +++ b/yazi-config/src/keymap/control.rs @@ -52,21 +52,18 @@ impl<'de> Deserialize<'de> for Control { pub struct Shadow { pub on: Vec, pub run: Option, - // TODO: remove this once Yazi 0.3 is released pub exec: Option, pub desc: Option, } let shadow = Shadow::deserialize(deserializer)?; - // TODO: remove this once Yazi 0.3 is released -- #[derive(Deserialize)] struct VecCmd(#[serde(deserialize_with = "super::run_deserialize")] Vec); let Some(run) = shadow.run.or(shadow.exec) else { return Err(serde::de::Error::custom("missing field `run` within `[keymap]`")); }; - // TODO: -- remove this once Yazi 0.3 is released Ok(Self { on: shadow.on, run: run.0, desc: shadow.desc }) } diff --git a/yazi-config/src/plugin/rule.rs b/yazi-config/src/plugin/rule.rs index ecea25053..e57027ef1 100644 --- a/yazi-config/src/plugin/rule.rs +++ b/yazi-config/src/plugin/rule.rs @@ -47,14 +47,12 @@ impl<'de> Deserialize<'de> for PluginRule { let shadow = Shadow::deserialize(deserializer)?; - // TODO: -- remove this once Yazi 0.3 is released #[derive(Deserialize)] struct WrappedCmd(#[serde(deserialize_with = "super::run_deserialize")] Cmd); let Some(run) = shadow.run.or(shadow.exec) else { return Err(serde::de::Error::custom("missing field `run` within `[plugin]`")); }; - // TODO: remove this once Yazi 0.3 is released -- Ok(Self { id: shadow.id,