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();