Skip to content

Commit

Permalink
chore: remove unused mut
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Aug 22, 2023
1 parent 7367305 commit 07ffd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn main() -> io::Result<()> {

// print messages, if any
ctx.messages.retain(|message| message.tick > 0);
for (index, mut message) in ctx.messages.iter_mut().rev().enumerate() {
for (index, message) in ctx.messages.iter_mut().rev().enumerate() {
message.tick -= 1;
let pos: u16 = rows - 20 - index as u16;
if message.tick > 0 {
Expand Down

0 comments on commit 07ffd44

Please sign in to comment.