From fefd643657a63772666c363288dcd63b0c77c8aa Mon Sep 17 00:00:00 2001 From: scott-c Date: Tue, 19 May 2020 19:56:51 +0800 Subject: [PATCH] Fix unused variable compiler warning --- server/src/sys/message.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/src/sys/message.rs b/server/src/sys/message.rs index 1fdd8433cd..2b883d75b0 100644 --- a/server/src/sys/message.rs +++ b/server/src/sys/message.rs @@ -406,10 +406,8 @@ impl<'a> System<'a> for Sys { } else { let bubble = SpeechBubble::player_new(message.clone(), *time); let _ = speech_bubbles.insert(entity, bubble); - match players.get(entity) { - Some(player) => { - let stat = - stats.get(entity).expect("Expected stat.name for player"); + match stats.get(entity) { + Some(stat) => { if admins.get(entity).is_some() { format!("[ADMIN][{}] {}", &stat.name, message) } else {