Skip to content

Commit e412392

Browse files
cfsmp3claude
andcommitted
fix(rust): Remove unused assignments to fix clippy warnings
Remove unnecessary `time_show.time_in_ms += 1000 / 29.97` operations that were restoring values that were never read afterwards. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 60aa30f commit e412392

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/rust/src/decoder/tv_screen.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ impl dtvcc_tv_screen {
454454
// Correct the frame delay
455455
time_show.time_in_ms -= 1000 / 29.97 as i64;
456456
buf.push_str(&(get_scc_time_str(time_show) + "\t942c 942c ").to_owned());
457-
time_show.time_in_ms += 1000 / 29.97 as i64;
458457
// Clear the buffer and start pop on caption
459458
buf.push_str("94ae 94ae 9420 9420");
460459
}
@@ -466,14 +465,12 @@ impl dtvcc_tv_screen {
466465
time_show.time_in_ms -= 1000 / 29.97 as i64;
467466
// Clear the buffer and start pop on caption in new time
468467
buf.push_str(&(get_scc_time_str(time_show) + "\t94ae 94ae 9420 9420").to_owned());
469-
time_show.time_in_ms += 1000 / 29.97 as i64;
470468
}
471469
Ordering::Equal => {
472470
time_show.time_in_ms -= 1000 / 29.97 as i64;
473471
buf.push_str(
474472
&(get_scc_time_str(time_show) + "\t942c 942c 94ae 94ae 9420 9420").to_owned(),
475473
);
476-
time_show.time_in_ms += 1000 / 29.97 as i64;
477474
}
478475
}
479476

0 commit comments

Comments
 (0)