mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
chore: apply clippy fixes; suppress "too many lines" lint
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a696476135218b9979677c66c4be4d96aced8
This commit is contained in:
parent
261b154527
commit
0547376a9e
2 changed files with 2 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ impl ClipboardDb for SqliteClipboardDb {
|
|||
/// `Some(Regex)` if present and valid, `None` otherwise.
|
||||
fn load_sensitive_regex() -> Option<Regex> {
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ fn report_error<T>(result: Result<T, impl std::fmt::Display>, context: &str) ->
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_lines)] // whatever
|
||||
fn main() {
|
||||
smol::block_on(async {
|
||||
let cli = Cli::parse();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue