From 242a23658c8b550a49b8f001d439c7b808ef92f3 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sat, 25 May 2019 21:03:56 +0100 Subject: [PATCH] Switched to pop_front Former-commit-id: 2653d3bb0fc5e9dd9c50eeb7b012d3cd4e94b439 --- voxygen/src/hud/chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voxygen/src/hud/chat.rs b/voxygen/src/hud/chat.rs index 40afe22e44..eaca8fafdb 100644 --- a/voxygen/src/hud/chat.rs +++ b/voxygen/src/hud/chat.rs @@ -96,7 +96,7 @@ impl<'a> Widget for Chat<'a> { // Empty old messages state.update(|s| { while s.messages.len() > MAX_MESSAGES { - s.messages.pop_back(); + s.messages.pop_front(); } });