mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix unused variable compiler warning
This commit is contained in:
parent
288c7cdbfa
commit
fefd643657
@ -406,10 +406,8 @@ impl<'a> System<'a> for Sys {
|
|||||||
} else {
|
} else {
|
||||||
let bubble = SpeechBubble::player_new(message.clone(), *time);
|
let bubble = SpeechBubble::player_new(message.clone(), *time);
|
||||||
let _ = speech_bubbles.insert(entity, bubble);
|
let _ = speech_bubbles.insert(entity, bubble);
|
||||||
match players.get(entity) {
|
match stats.get(entity) {
|
||||||
Some(player) => {
|
Some(stat) => {
|
||||||
let stat =
|
|
||||||
stats.get(entity).expect("Expected stat.name for player");
|
|
||||||
if admins.get(entity).is_some() {
|
if admins.get(entity).is_some() {
|
||||||
format!("[ADMIN][{}] {}", &stat.name, message)
|
format!("[ADMIN][{}] {}", &stat.name, message)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user