From 008899f6aba7c3f2177d37398234f68643c18cdf Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Fri, 9 May 2025 16:39:41 -0300 Subject: [PATCH] fix: resolve missing functions and unused imports The commit adds `pub` to `mode_get` for visibility and removes unused imports in `src/modes/get.rs`, while adding the missing `get_engine` import. --- src/main.rs | 2 +- src/modes/get.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index e2d1efa..a1d0b20 100644 --- a/src/main.rs +++ b/src/main.rs @@ -444,7 +444,7 @@ fn mode_save(cmd: &mut Command, args: Args, ids: &mut Vec, tags: &mut Vec, tags: &mut Vec, conn: &mut Connection, data_path: PathBuf) -> Result<()> { +pub fn mode_get(cmd: &mut Command, args: Args, ids: &mut Vec, tags: &mut Vec, conn: &mut Connection, data_path: PathBuf) -> Result<()> { if ! ids.is_empty() && ! tags.is_empty() { cmd.error(ErrorKind::InvalidValue, "Both ID and tags given, you must supply exactly one ID or atleast one tag when using --get").exit(); } else if ids.len() > 1 { diff --git a/src/modes/get.rs b/src/modes/get.rs index 8209039..590aac6 100644 --- a/src/modes/get.rs +++ b/src/modes/get.rs @@ -1,6 +1,3 @@ -use std::io; -use std::path::PathBuf; -use std::collections::HashMap; use anyhow::{Context, Result, Error, anyhow}; use clap::Command;