Skip to content

Commit

Permalink
fix: optimize code 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker2770 committed Oct 12, 2024
1 parent a68ccff commit d70e22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtt_opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ pub mod m_rtt_opts {
}
});
if read_size > 0 {
self.n_items += 1;
self.n_items = self.n_items.wrapping_add(1);
ui.ctx().request_repaint();
}
}
Expand Down

0 comments on commit d70e22d

Please sign in to comment.