mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-21 21:49:57 +00:00
[PR #1795] [MERGED] fix(rust): remove unused assignments in tv_screen.rs #2532
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1795
Author: @cfsmp3
Created: 12/12/2025
Status: ✅ Merged
Merged: 12/12/2025
Merged by: @cfsmp3
Base:
master← Head:fix/rust-clippy-warnings📝 Commits (1)
55cb731fix(rust): remove unused assignments in tv_screen.rs📊 Changes
1 file changed (+0 additions, -3 deletions)
View changed files
📝
src/rust/src/decoder/tv_screen.rs(+0 -3)📄 Description
Summary
Remove three unused assignments to
time_show.time_in_msinsrc/rust/src/decoder/tv_screen.rsthat were flagged by Clippy as "value assigned is never read".Issue
Clippy reported warnings:
Root Cause
The code pattern was:
time_show.time_in_msget_scc_time_str(time_show)However, since
time_showis not used after the match statement ends, the restoration assignments (step 3) were unnecessary dead code.Changes
Removed the three unnecessary
+= 1000 / 29.97 as i64assignments at the end of each match branch.Test plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.