Skip to content

Commit 842b6d1

Browse files
SigureMoCopilot
andcommitted
🚨 style: fix clippy warning
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent fe8b581 commit 842b6d1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
#[allow(dead_code)]
12
pub mod danmaku;
3+
#[allow(dead_code)]
24
pub mod danmaku_view;

packages/biliass/rust/src/writer/rows.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ pub fn test_free_rows(
3838
while current_row < rowmax && (res as f32) < comment_data.height {
3939
if target_row != rows[comment_pos_id][current_row] {
4040
target_row = rows[comment_pos_id][current_row];
41-
if let Some(target_row) = target_row {
42-
if target_row.timeline + duration_still > comment.timeline {
43-
break;
44-
}
41+
if let Some(target_row) = target_row
42+
&& target_row.timeline + duration_still > comment.timeline
43+
{
44+
break;
4545
}
4646
}
4747
current_row += 1;

0 commit comments

Comments
 (0)