fix: remove deprecated create method from MetaPlugin implementations
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -47,10 +47,6 @@ impl MetaPlugin for BinaryMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize() or update(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -112,10 +108,6 @@ impl MetaPlugin for CwdMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -160,10 +152,6 @@ impl MetaPlugin for UidMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -205,10 +193,6 @@ impl MetaPlugin for UserMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -253,10 +237,6 @@ impl MetaPlugin for GidMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -298,10 +278,6 @@ impl MetaPlugin for GroupMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -346,10 +322,6 @@ impl MetaPlugin for ShellMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -394,10 +366,6 @@ impl MetaPlugin for ShellPidMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -442,10 +410,6 @@ impl MetaPlugin for KeepPidMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -487,10 +451,6 @@ impl MetaPlugin for HostnameMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
@@ -535,10 +495,6 @@ impl MetaPlugin for FullHostnameMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn create(&self) -> Result<Box<dyn Write>> {
|
||||
Ok(Box::new(io::sink()))
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
|
||||
Reference in New Issue
Block a user