From bc4f960d8824b25cfdf8602b201dd574d8cbad83 Mon Sep 17 00:00:00 2001 From: Llywelwyn Date: Thu, 5 Oct 2023 04:38:22 +0100 Subject: [PATCH] fixes missing borrow --- src/gamelog/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamelog/events.rs b/src/gamelog/events.rs index f16a273..9e69990 100644 --- a/src/gamelog/events.rs +++ b/src/gamelog/events.rs @@ -126,7 +126,7 @@ pub fn record_event(event: EVENT) { new_event = format!("Discovered {}", name); } EVENT::Identified(name) => { - new_event = format!("Identified {}", crate::gui::with_article(name)); + new_event = format!("Identified {}", crate::gui::with_article(&name)); } EVENT::PlayerDied(str) => { // Generating the String is handled in the death effect, to avoid passing the ecs here.