fix: update module declarations and imports

Co-authored-by: aider (openai/andrew/openrouter/google/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-25 13:03:59 -03:00
parent a1bcba5cb1
commit 53c63360cb
4 changed files with 11 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ use anyhow::{anyhow, Result};
use std::path::PathBuf;
use crate::config;
use crate::core::error::CoreError;
use crate::core::item_service::ItemService;
use clap::error::ErrorKind;
use clap::Command;
@@ -37,7 +38,7 @@ pub fn mode_delete(
match item_service.delete_item(conn, *item_id) {
Ok(_) => {}
Err(e) => match e {
crate::core::error::CoreError::ItemNotFound(_) => {
CoreError::ItemNotFound(_) => {
warn!("Unable to find item {item_id} in database");
}
_ => return Err(anyhow!(e).context(format!("Failed to delete item {}", item_id))),