1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-14 02:16:10 +00:00

Mutable, formatting

This commit is contained in:
jugeeya 2023-09-07 11:58:42 -07:00 committed by GitHub
parent 27c6801b64
commit 0ee89a2144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -87,8 +87,7 @@ pub struct InputLog {
impl PartialEq for InputLog {
fn eq(&self, other: &Self) -> bool {
self.frames == other.frames &&
!self.is_different(other)
self.frames == other.frames && !self.is_different(other)
}
}
impl Eq for InputLog {}

View file

@ -182,7 +182,7 @@ pub unsafe fn draw(root_pane: &Pane) {
if drawn_logs_ptr.is_null() {
return;
}
let drawn_logs = &*drawn_logs_ptr;
let drawn_logs = &mut *drawn_logs_ptr;
for (log_idx, log) in logs.iter().enumerate() {
draw_log(root_pane, log_idx, log, &mut drawn_logs[log_idx]);