diff --git a/apriltag/apriltag-track-movie/Cargo.toml b/apriltag/apriltag-track-movie/Cargo.toml index e4bc5949f..de9b3820e 100644 --- a/apriltag/apriltag-track-movie/Cargo.toml +++ b/apriltag/apriltag-track-movie/Cargo.toml @@ -11,9 +11,9 @@ serde = { version = "1.0.188", features = ["derive"] } csv = "1.2.2" y4m = "0.8.0" -ads-apriltag = {path = ".."} +ads-apriltag = { path = ".." } convert-image = { path = "../../convert-image" } simple-frame = { path = "../../simple-frame" } [dev-dependencies] -download-verify = {path="../../download-verify"} +download-verify = { path = "../../download-verify" } diff --git a/apriltag/apriltag-track-movie/src/lib.rs b/apriltag/apriltag-track-movie/src/lib.rs index 0ed4e5f8e..ca0866a00 100644 --- a/apriltag/apriltag-track-movie/src/lib.rs +++ b/apriltag/apriltag-track-movie/src/lib.rs @@ -136,12 +136,13 @@ pub fn run_cli(cli: Cli) -> Result<()> { let mut frame_store; - let frame_iter: &mut dyn Iterator> = if let Some(max_num_frames) = cli.max_num_frames { - frame_store = Some(frames.take(max_num_frames)); - frame_store.as_mut().unwrap() - } else { - &mut frames - }; + let frame_iter: &mut dyn Iterator> = + if let Some(max_num_frames) = cli.max_num_frames { + frame_store = Some(frames.take(max_num_frames)); + frame_store.as_mut().unwrap() + } else { + &mut frames + }; let mut wtr = None;