diff options
| author | lukeflo | 2025-01-29 21:24:41 +0100 |
|---|---|---|
| committer | lukeflo | 2025-01-29 21:24:41 +0100 |
| commit | ebafb9827c8545a4f3d84db85ee61fb140254ef8 (patch) | |
| tree | 7fb5435162625661f7f9cd7b92f7dbc9aa0090b0 /src/bibiman.rs | |
| parent | dd108698cfbfda6ba251c75f821f7a4ede9b0608 (diff) | |
| download | bibiman-ebafb9827c8545a4f3d84db85ee61fb140254ef8.tar.gz bibiman-ebafb9827c8545a4f3d84db85ee61fb140254ef8.zip | |
Simplify codebase
+ Remove EntryTableItem struct
+ Simply use the initial generated BibiData struct
+ One simple `.clone()`, thus, replaces multiple iterations
+ Keep all other actions
Diffstat (limited to 'src/bibiman.rs')
| -rw-r--r-- | src/bibiman.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
