Skip to content

Commit 012717a

Browse files
committed
chore(verify): clippy and Biome clean on all targets
- allow too_many_arguments on the two harness helpers that take a recording's full setup; - the scripted decoder's AVFoundation-only time helpers are macOS-only, so Windows clippy no longer sees dead code; - suites.json in the repository's Biome format.
1 parent 5b46574 commit 012717a

4 files changed

Lines changed: 205 additions & 373 deletions

File tree

‎crates/verify/src/pipeline.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ struct VideoLeg {
256256
fps: u32,
257257
}
258258

259+
#[allow(clippy::too_many_arguments)]
259260
async fn video_leg(
260261
dir: &Path,
261262
rel: RelativePathBuf,

‎crates/verify/tests/common/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,7 @@ pub fn assert_passed(failures: Vec<String>) {
10581058
/// (so transition frames are read as blends).
10591059
/// Video only (`create_segments_without_audio`): the audio clock has its own
10601060
/// oracle. Dropped frames are normal under load; delivered ones must be right.
1061+
#[allow(clippy::too_many_arguments)]
10611062
pub async fn realtime_playback(
10621063
project: &Project,
10631064
config: ProjectConfiguration,

‎crates/video-decode/src/scripted.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,13 @@ impl ScriptState {
106106
}
107107

108108
/// Whether `pts` (in stream ticks) is at or before `value / scale` seconds.
109+
#[cfg(target_os = "macos")]
109110
fn at_or_before(&self, pts: i64, value: i64, scale: i32) -> bool {
110111
let (num, den) = self.script.time_base;
111112
(pts as i128) * (num as i128) * (scale as i128) <= (value as i128) * (den as i128)
112113
}
113114

115+
#[cfg(target_os = "macos")]
114116
fn newest_at_or_before(&self, value: i64, scale: i32) -> Option<usize> {
115117
self.script
116118
.frames

0 commit comments

Comments
 (0)