<commit_before>use anyhow::Error;
use notify_rust::Notification;
use std::io;

pub fn is_file_nonexistant(err: &Error) -> bool {
    match err.downcast_ref::<io::Error>() {
        Some(err) if err.kind() == io::ErrorKind::NotFound => true,
        _ => false,
    }
}

pub fn error_notif(err: &Error) {
    Notification::new()
        .summary(concat!(env!("CARGO_PKG_NAME"), " error"))
        .body(&format!("{:?}", err))
        .show()
        .ok();
}<commit_msg>Fix clippy warning<commit_after>use anyhow::Error;
use notify_rust::Notification;
use std::io;

pub fn is_file_nonexistant(err: &Error) -> bool {
    matches!(err.downcast_ref::<io::Error>(), Some(err) if err.kind() == io::ErrorKind::NotFound)
}

pub fn error_notif(err: &Error) {
    Notification::new()
        .summary(concat!(env!("CARGO_PKG_NAME"), " error"))
        .body(&format!("{:?}", err))
        .show()
        .ok();
}
{'fraction_non_alphanumeric': 0.20155038759689922, 'fraction_numerical': 0.0, 'mean_word_length': 3.635897435897436, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '441984', 'n_tokens_mistral': 318, 'n_tokens_neox': 318, 'n_words': 59}