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 {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user