From ebafb9827c8545a4f3d84db85ee61fb140254ef8 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Wed, 29 Jan 2025 21:24:41 +0100 Subject: Simplify codebase + Remove EntryTableItem struct + Simply use the initial generated BibiData struct + One simple `.clone()`, thus, replaces multiple iterations + Keep all other actions --- src/bibiman.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bibiman.rs') diff --git a/src/bibiman.rs b/src/bibiman.rs index ee769c4..71288ce 100644 --- a/src/bibiman.rs +++ b/src/bibiman.rs @@ -332,9 +332,9 @@ impl Bibiman { .citekey .clone(); - // Add curly brace as prefix and comma as suffix that only + // Add comma as suffix that only // main citekeys are matched, not other fields like crossref - let citekey_pattern: String = format!("{{{},", citekey); + let citekey_pattern: String = format!("{},", citekey); // Check if multiple files were passed to bibiman and // return the correct file path -- cgit v1.2.3