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:
@@ -17,20 +17,6 @@ pub struct MetaPluginCommand {
|
|||||||
options: std::collections::HashMap<String, serde_yaml::Value>,
|
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 {
|
impl MetaPluginCommand {
|
||||||
pub fn new(
|
pub fn new(
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
use derive_more::From;
|
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
#[derive(Error, Debug, From)]
|
#[derive(Error, Debug)]
|
||||||
pub enum CoreError {
|
pub enum CoreError {
|
||||||
#[error("Database error: {0}")]
|
#[error("Database error: {0}")]
|
||||||
Database(#[from] rusqlite::Error),
|
Database(#[from] rusqlite::Error),
|
||||||
@@ -17,6 +16,6 @@ pub enum CoreError {
|
|||||||
Compression(String),
|
Compression(String),
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
Other(#[from] anyhow::Error),
|
Other(#[from] anyhow::Error),
|
||||||
#[from]
|
#[error("Migration error: {0}")]
|
||||||
Migration(#[error(ignore)] rusqlite_migration::Error),
|
Migration(#[from] rusqlite_migration::Error),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user