From fb34960e523b8f618fc4e024902f43928d8aa716 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Wed, 29 Jan 2025 20:42:21 +0100 Subject: try with borrowed values --- src/bibiman.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bibiman.rs') 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, // 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 { // let main_bibfiles = args.fileargs.clone(); -- cgit v1.2.3