fix: remove unused meta_name fields from meta plugin structs
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -3,7 +3,6 @@ use crate::meta_plugin::{MetaPlugin, MetaPluginType};
|
|||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
pub struct CwdMetaPlugin {
|
pub struct CwdMetaPlugin {
|
||||||
meta_name: String,
|
|
||||||
is_finalized: bool,
|
is_finalized: bool,
|
||||||
base: crate::meta_plugin::BaseMetaPlugin,
|
base: crate::meta_plugin::BaseMetaPlugin,
|
||||||
}
|
}
|
||||||
@@ -34,7 +33,6 @@ impl CwdMetaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CwdMetaPlugin {
|
CwdMetaPlugin {
|
||||||
meta_name: "cwd".to_string(),
|
|
||||||
is_finalized: false,
|
is_finalized: false,
|
||||||
base,
|
base,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ impl Hasher {
|
|||||||
pub struct DigestMetaPlugin {
|
pub struct DigestMetaPlugin {
|
||||||
hasher: Option<Hasher>,
|
hasher: Option<Hasher>,
|
||||||
is_finalized: bool,
|
is_finalized: bool,
|
||||||
meta_name: String,
|
|
||||||
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
options: std::collections::HashMap<String, serde_yaml::Value>,
|
options: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
}
|
}
|
||||||
@@ -146,7 +145,6 @@ impl DigestMetaPlugin {
|
|||||||
|
|
||||||
plugin
|
plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MetaPlugin for DigestMetaPlugin {
|
impl MetaPlugin for DigestMetaPlugin {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ use crate::meta_plugin::{MetaPlugin, MetaPluginType};
|
|||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
pub struct HostnameMetaPlugin {
|
pub struct HostnameMetaPlugin {
|
||||||
meta_name: String,
|
|
||||||
is_finalized: bool,
|
is_finalized: bool,
|
||||||
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
options: std::collections::HashMap<String, serde_yaml::Value>,
|
options: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
@@ -106,7 +105,6 @@ impl HostnameMetaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
HostnameMetaPlugin {
|
HostnameMetaPlugin {
|
||||||
meta_name: "hostname".to_string(),
|
|
||||||
is_finalized: false,
|
is_finalized: false,
|
||||||
outputs: final_outputs,
|
outputs: final_outputs,
|
||||||
options: final_options,
|
options: final_options,
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ use crate::meta_plugin::{MetaPlugin, MetaPluginType};
|
|||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
pub struct KeepPidMetaPlugin {
|
pub struct KeepPidMetaPlugin {
|
||||||
meta_name: String,
|
|
||||||
is_finalized: bool,
|
is_finalized: bool,
|
||||||
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
options: std::collections::HashMap<String, serde_yaml::Value>,
|
options: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
@@ -35,7 +34,6 @@ impl KeepPidMetaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
KeepPidMetaPlugin {
|
KeepPidMetaPlugin {
|
||||||
meta_name: "keep_pid".to_string(),
|
|
||||||
is_finalized: false,
|
is_finalized: false,
|
||||||
outputs: final_outputs,
|
outputs: final_outputs,
|
||||||
options: final_options,
|
options: final_options,
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ pub struct ReadRateMetaPlugin {
|
|||||||
start_time: Option<Instant>,
|
start_time: Option<Instant>,
|
||||||
bytes_read: u64,
|
bytes_read: u64,
|
||||||
is_finalized: bool,
|
is_finalized: bool,
|
||||||
meta_name: String,
|
|
||||||
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
options: std::collections::HashMap<String, serde_yaml::Value>,
|
options: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
}
|
}
|
||||||
@@ -41,7 +40,6 @@ impl ReadRateMetaPlugin {
|
|||||||
start_time: None,
|
start_time: None,
|
||||||
bytes_read: 0,
|
bytes_read: 0,
|
||||||
is_finalized: false,
|
is_finalized: false,
|
||||||
meta_name: "read_rate".to_string(),
|
|
||||||
outputs: final_outputs,
|
outputs: final_outputs,
|
||||||
options: final_options,
|
options: final_options,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ use crate::meta_plugin::{MetaPlugin, MetaPluginType};
|
|||||||
pub struct ReadTimeMetaPlugin {
|
pub struct ReadTimeMetaPlugin {
|
||||||
start_time: Option<Instant>,
|
start_time: Option<Instant>,
|
||||||
is_finalized: bool,
|
is_finalized: bool,
|
||||||
meta_name: String,
|
|
||||||
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
options: std::collections::HashMap<String, serde_yaml::Value>,
|
options: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
}
|
}
|
||||||
@@ -39,7 +38,6 @@ impl ReadTimeMetaPlugin {
|
|||||||
ReadTimeMetaPlugin {
|
ReadTimeMetaPlugin {
|
||||||
start_time: None,
|
start_time: None,
|
||||||
is_finalized: false,
|
is_finalized: false,
|
||||||
meta_name: "read_time".to_string(),
|
|
||||||
outputs: final_outputs,
|
outputs: final_outputs,
|
||||||
options: final_options,
|
options: final_options,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ use crate::meta_plugin::{MetaPlugin, MetaPluginType};
|
|||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
pub struct ShellMetaPlugin {
|
pub struct ShellMetaPlugin {
|
||||||
meta_name: String,
|
|
||||||
is_finalized: bool,
|
is_finalized: bool,
|
||||||
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
options: std::collections::HashMap<String, serde_yaml::Value>,
|
options: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
@@ -35,7 +34,6 @@ impl ShellMetaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ShellMetaPlugin {
|
ShellMetaPlugin {
|
||||||
meta_name: "shell".to_string(),
|
|
||||||
is_finalized: false,
|
is_finalized: false,
|
||||||
outputs: final_outputs,
|
outputs: final_outputs,
|
||||||
options: final_options,
|
options: final_options,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ use crate::meta_plugin::{MetaPlugin, MetaPluginType};
|
|||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
pub struct ShellPidMetaPlugin {
|
pub struct ShellPidMetaPlugin {
|
||||||
meta_name: String,
|
|
||||||
is_finalized: bool,
|
is_finalized: bool,
|
||||||
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
options: std::collections::HashMap<String, serde_yaml::Value>,
|
options: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
@@ -36,7 +35,6 @@ impl ShellPidMetaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ShellPidMetaPlugin {
|
ShellPidMetaPlugin {
|
||||||
meta_name: "shell_pid".to_string(),
|
|
||||||
is_finalized: false,
|
is_finalized: false,
|
||||||
outputs: final_outputs,
|
outputs: final_outputs,
|
||||||
options: final_options,
|
options: final_options,
|
||||||
|
|||||||
Reference in New Issue
Block a user