Fix build script and clippy issues

This commit is contained in:
thePR0M3TH3AN
2025-05-21 13:10:25 -04:00
parent e4c7c18506
commit 9fae768577
4 changed files with 10 additions and 15 deletions

View File

@@ -16,8 +16,6 @@ use anyhow::{Context, Result};
use clap::{CommandFactory, Parser};
use clap_complete::generate;
use glob::Pattern;
use shellexpand;
use shlex;
use std::{env, fs, io, path::Path, process::Command};
use tracing::{debug, error, info};
use walkdir::WalkDir;
@@ -293,13 +291,11 @@ fn run_search(conn: &rusqlite::Connection, raw_query: &str, exec: Option<String>
if let Some(cmd_tpl) = exec {
run_exec(&hits, &cmd_tpl)?;
} else if hits.is_empty() {
eprintln!("No matches for query: `{raw_query}` (FTS expr: `{fts_expr}`)");
} else {
if hits.is_empty() {
eprintln!("No matches for query: `{raw_query}` (FTS expr: `{fts_expr}`)");
} else {
for p in hits {
println!("{p}");
}
for p in hits {
println!("{p}");
}
}
Ok(())