fix: remove unused imports, unnecessary mutable variables, and dead code
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -108,38 +108,6 @@ pub fn get_digest_type_meta(digest_type: MetaPluginType) -> String {
|
||||
format!("digest_{}", digest_type.to_string().to_lowercase())
|
||||
}
|
||||
|
||||
pub fn store_item_meta_value(
|
||||
conn: &mut Connection,
|
||||
item: Item,
|
||||
meta_name: String,
|
||||
meta_value: String,
|
||||
) -> Result<(), anyhow::Error> {
|
||||
// Save digest to meta
|
||||
let meta = Meta {
|
||||
id: item.id.ok_or_else(|| anyhow!("Item missing ID"))?,
|
||||
name: meta_name,
|
||||
value: meta_value,
|
||||
};
|
||||
store_meta(conn, meta)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn store_item_digest_value(
|
||||
conn: &mut Connection,
|
||||
item: Item,
|
||||
digest_type: MetaPluginType,
|
||||
digest_value: String,
|
||||
) -> Result<(), anyhow::Error> {
|
||||
// Save digest to meta
|
||||
let digest_meta_name = get_digest_type_meta(digest_type);
|
||||
let digest_meta = Meta {
|
||||
id: item.id.ok_or_else(|| anyhow!("Item missing ID"))?,
|
||||
name: digest_meta_name,
|
||||
value: digest_value,
|
||||
};
|
||||
store_meta(conn, digest_meta)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn cmd_args_digest_type(cmd: &mut Command, args: &Args) -> MetaPluginType {
|
||||
let digest_name = args
|
||||
|
||||
Reference in New Issue
Block a user