aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorlukeflo2024-11-14 15:54:58 +0100
committerlukeflo2024-11-14 15:54:58 +0100
commitf251969044036ecfbc2cd4774c9ecb97b1992bb3 (patch)
treea5d3fc06f4eeee62280dced32eca47d297577935 /src/app.rs
parentca51eea300b84a6fa865c6f3e00823a8099bb9bc (diff)
downloadbibiman-f251969044036ecfbc2cd4774c9ecb97b1992bb3.tar.gz
bibiman-f251969044036ecfbc2cd4774c9ecb97b1992bb3.zip
refined complicated code parts
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs4
1 files changed, 2 insertions, 2 deletions
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(),
);
}