From 2fe9d593b1d10ee04ca2481004d8b8fa8e46146f Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 27 Aug 2025 21:38:40 -0300 Subject: [PATCH] refactor: remove manual Default implementation from DigestMetaPlugin Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/meta_plugin/digest.rs | 10 ---------- src/services/error.rs | 27 +-------------------------- 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/src/meta_plugin/digest.rs b/src/meta_plugin/digest.rs index c148676..b2eebbd 100644 --- a/src/meta_plugin/digest.rs +++ b/src/meta_plugin/digest.rs @@ -67,16 +67,6 @@ pub struct DigestMetaPlugin { options: std::collections::HashMap, } -impl Default for DigestMetaPlugin { - fn default() -> Self { - Self { - hasher: None, - is_finalized: false, - outputs: std::collections::HashMap::new(), - options: std::collections::HashMap::new(), - } - } -} impl DigestMetaPlugin { pub fn new( diff --git a/src/services/error.rs b/src/services/error.rs index fbe2eed..ae4ccc4 100644 --- a/src/services/error.rs +++ b/src/services/error.rs @@ -1,30 +1,5 @@ -use thiserror::Error; - -#[derive(Error, Debug)] -pub enum CoreError { - #[error("Database error: {0}")] - Database(#[from] rusqlite::Error), - - #[error("I/O error: {0}")] - Io(#[from] std::io::Error), - - #[error("Item not found with id {0}")] - ItemNotFound(i64), - - #[error("Item not found")] - ItemNotFoundGeneric, - - #[error("Invalid input: {0}")] - InvalidInput(String), - - #[error("Compression error: {0}")] - Compression(String), - - #[error(transparent)] - Other(#[from] anyhow::Error), -} - use derive_more::From; +use thiserror::Error; #[derive(Error, Debug, From)] pub enum CoreError {