Skip to content

Commit

Permalink
more lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Feb 9, 2024
1 parent 430d5dd commit b101589
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/src/overlay/srt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn overlay_srt_data(
return;
}

let mut data;
let data;

Check failure on line 17 in backend/src/overlay/srt.rs

View workflow job for this annotation

GitHub Actions / Lints

unneeded late initialization
match srt_data {
Some(d) => {
data = d;
Expand Down
2 changes: 1 addition & 1 deletion backend/src/srt/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub struct SrtFrame {
pub start_time_secs: f32,
pub end_time_secs: f32,
pub data: Option<SrtFrameData>,
pub debugData: Option<SrtDebugFrameData>,
pub debug_data: Option<SrtDebugFrameData>,
}

#[derive(Debug, FromStr, Clone, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion backend/src/srt/srt_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl SrtFile {
start_time_secs: i.start_time.into_duration().as_secs_f32(),
end_time_secs: i.end_time.into_duration().as_secs_f32(),
data: d,
debugData: dd,
debug_data: dd,
})
})
.collect::<Result<Vec<_>, _>>()?;
Expand Down

0 comments on commit b101589

Please sign in to comment.