refactor: remove manual Debug implementation for MetaPluginCommand

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-27 21:47:40 -03:00
parent 1025f1bc01
commit bacfaa4fc3
2 changed files with 3 additions and 18 deletions

View File

@@ -17,20 +17,6 @@ pub struct MetaPluginCommand {
options: std::collections::HashMap<String, serde_yaml::Value>,
}
impl std::fmt::Debug for MetaPluginCommand {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("MetaPluginCommand")
.field("program", &self.program)
.field("args", &self.args)
.field("supported", &self.supported)
.field("split_whitespace", &self.split_whitespace)
.field("process", &self.process)
.field("writer", &"Box<dyn Write>")
.field("outputs", &self.outputs)
.field("options", &self.options)
.finish()
}
}
impl MetaPluginCommand {
pub fn new(

View File

@@ -1,7 +1,6 @@
use derive_more::From;
use thiserror::Error;
#[derive(Error, Debug, From)]
#[derive(Error, Debug)]
pub enum CoreError {
#[error("Database error: {0}")]
Database(#[from] rusqlite::Error),
@@ -17,6 +16,6 @@ pub enum CoreError {
Compression(String),
#[error(transparent)]
Other(#[from] anyhow::Error),
#[from]
Migration(#[error(ignore)] rusqlite_migration::Error),
#[error("Migration error: {0}")]
Migration(#[from] rusqlite_migration::Error),
}