From f251969044036ecfbc2cd4774c9ecb97b1992bb3 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Thu, 14 Nov 2024 15:54:58 +0100 Subject: refined complicated code parts --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app.rs') diff --git a/src/app.rs b/src/app.rs index 81a5b55..1a9b9c6 100644 --- a/src/app.rs +++ b/src/app.rs @@ -228,9 +228,9 @@ impl App { } CmdAction::YankItem => { if let CurrentArea::EntryArea = self.bibiman.current_area { - Bibiman::yank_text(&self.bibiman.get_selected_citekey()); + Bibiman::yank_text(self.bibiman.get_selected_citekey()); self.bibiman.popup_area.popup_message( - "Yanked citekey to clipboard:", + "Yanked citekey to clipboard:".to_owned(), self.bibiman.get_selected_citekey().to_string(), ); } -- cgit v1.2.3