aboutsummaryrefslogtreecommitdiff
path: root/src/bibiman.rs
diff options
context:
space:
mode:
authorlukeflo2025-01-29 20:42:21 +0100
committerlukeflo2025-01-29 20:42:21 +0100
commitfb34960e523b8f618fc4e024902f43928d8aa716 (patch)
tree22fec98a9605360a9b5d446db63af8229785c733 /src/bibiman.rs
parent6e320ef536e9bb1c73f583e26d5a765c3214ef83 (diff)
downloadbibiman-fb34960e523b8f618fc4e024902f43928d8aa716.tar.gz
bibiman-fb34960e523b8f618fc4e024902f43928d8aa716.zip
try with borrowed values
Diffstat (limited to 'src/bibiman.rs')
-rw-r--r--src/bibiman.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bibiman.rs b/src/bibiman.rs
index 7fd98cd..9955896 100644
--- a/src/bibiman.rs
+++ b/src/bibiman.rs
@@ -59,7 +59,7 @@ pub enum FormerArea {
// Application.
#[derive(Debug)]
-pub struct Bibiman {
+pub struct Bibiman<'a> {
// main bib file
// pub main_bibfiles: Vec<PathBuf>,
// main bibliography
@@ -69,7 +69,7 @@ pub struct Bibiman {
// tag list
pub tag_list: TagList,
// table items
- pub entry_table: EntryTable,
+ pub entry_table: EntryTable<'a>,
// scroll state info buffer
pub scroll_info: u16,
// area
@@ -80,7 +80,7 @@ pub struct Bibiman {
pub popup_area: PopupArea,
}
-impl Bibiman {
+impl Bibiman<'_> {
// Constructs a new instance of [`App`].
pub fn new(args: &CLIArgs) -> Result<Self> {
// let main_bibfiles = args.fileargs.clone();