aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukeflo2025-10-15 07:28:20 +0200
committerlukeflo2025-10-15 07:28:20 +0200
commit2dc231247757a9a80b1925ed215f53f54eececa5 (patch)
treeacd446d6429a435f09309fdca08bff16d8450796
parentb582588b642e8a38956df2b573ae2be51f19e082 (diff)
downloadbibiman-2dc231247757a9a80b1925ed215f53f54eececa5.tar.gz
bibiman-2dc231247757a9a80b1925ed215f53f54eececa5.zip
fix tests, remove unneeded imports, add description
-rw-r--r--src/bibiman/citekeys.rs6
-rw-r--r--src/bibiman/citekeys/citekey_utils.rs3
-rw-r--r--src/config.rs1
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 <https://www.gnu.org/licenses/>.
/////
-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
"#,
)?;