refactor: remove connection storage from plugin structs and pass as argument

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-18 15:52:27 -03:00
parent 2a16edcbe7
commit d96804bdfb
5 changed files with 51 additions and 76 deletions

View File

@@ -60,10 +60,10 @@ pub trait MetaPlugin {
false
}
fn finalize(&mut self) -> Result<()>;
fn finalize(&mut self, conn: &Connection) -> Result<()>;
// Update the meta plugin with new data
fn update(&mut self, data: &[u8]);
fn update(&mut self, data: &[u8], conn: &Connection);
fn meta_name(&mut self) -> String;