Switched to pop_front

Former-commit-id: 2653d3bb0fc5e9dd9c50eeb7b012d3cd4e94b439
This commit is contained in:
Joshua Barretto 2019-05-25 21:03:56 +01:00
parent 3534804697
commit 242a23658c

View File

@ -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();
}
});