From 2dc231247757a9a80b1925ed215f53f54eececa5 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Wed, 15 Oct 2025 07:28:20 +0200 Subject: fix tests, remove unneeded imports, add description --- src/bibiman/citekeys.rs | 6 +++--- src/bibiman/citekeys/citekey_utils.rs | 3 --- src/config.rs | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/bibiman/citekeys.rs b/src/bibiman/citekeys.rs index 8f70ab0..fdeed14 100644 --- a/src/bibiman/citekeys.rs +++ b/src/bibiman/citekeys.rs @@ -241,9 +241,9 @@ impl<'a> CitekeyFormatting<'a> { /// That will prevent the replacement longer key parts that equal a full shorter /// key. /// - /// You are **very encouraged** to call this method before `update_file()` to - /// prevent replacing citekeys partly which afterwards wont match the pattern - /// anymore. + /// You are **very encouraged** to call this method before `update_file()` + /// or `update_notes_pdfs` to prevent replacing citekeys partly which + /// afterwards wont match the pattern anymore. pub fn rev_sort_new_keys_by_len(mut self) -> Self { self.old_new_keys_map .sort_by(|a, b| b.0.len().cmp(&a.0.len())); diff --git a/src/bibiman/citekeys/citekey_utils.rs b/src/bibiman/citekeys/citekey_utils.rs index b8f5600..773a2d2 100644 --- a/src/bibiman/citekeys/citekey_utils.rs +++ b/src/bibiman/citekeys/citekey_utils.rs @@ -15,10 +15,7 @@ // along with this program. If not, see . ///// -use std::sync::LazyLock; - use biblatex::{ChunksExt, Entry, Type}; -use deunicode::deunicode; use indoc::formatdoc; use owo_colors::{ OwoColorize, diff --git a/src/config.rs b/src/config.rs index b8d8b45..47e145c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -501,6 +501,7 @@ mod tests { year_color = "135" [citekey_formatter] + ascii_only = true "#, )?; -- cgit v1.2.3