From 8eb1159d648e8e53dc54e2fcc3c6d9a259b89197 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 1 Jul 2022 18:49:09 +0200 Subject: [PATCH] Fixes clippy warning. --- src/dynamic_data/models/battle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynamic_data/models/battle.rs b/src/dynamic_data/models/battle.rs index 1aece1d..ce41443 100644 --- a/src/dynamic_data/models/battle.rs +++ b/src/dynamic_data/models/battle.rs @@ -141,7 +141,7 @@ impl<'own, 'library> Battle<'own, 'library> { } /// The eventual result of the battle. Inconclusive until the battle is ended. pub fn result(&self) -> BattleResult { - self.result.read().clone() + *self.result.read() } /// The handler to send all events to. pub fn event_hook(&self) -> &EventHook {