From 0547376a9e1ac1a4c90ddd389294d277aee3f2f7 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 14 Aug 2025 17:28:36 +0300 Subject: [PATCH] chore: apply clippy fixes; suppress "too many lines" lint Signed-off-by: NotAShelf Change-Id: I6a6a696476135218b9979677c66c4be4d96aced8 --- src/db/mod.rs | 2 +- src/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db/mod.rs b/src/db/mod.rs index 6b64cf7..52dee84 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -397,7 +397,7 @@ impl ClipboardDb for SqliteClipboardDb { /// `Some(Regex)` if present and valid, `None` otherwise. fn load_sensitive_regex() -> Option { if let Ok(regex_path) = env::var("CREDENTIALS_DIRECTORY") { - let file = format!("{}/clipboard_filter", regex_path); + let file = format!("{regex_path}/clipboard_filter"); if let Ok(contents) = fs::read_to_string(&file) { if let Ok(re) = Regex::new(contents.trim()) { return Some(re); diff --git a/src/main.rs b/src/main.rs index 1e35a8d..d4a1255 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,6 +110,7 @@ fn report_error(result: Result, context: &str) -> } } +#[allow(clippy::too_many_lines)] // whatever fn main() { smol::block_on(async { let cli = Cli::parse();