Skip to content

Commit

Permalink
apriltag-track-movie: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Apr 16, 2024
1 parent 463c26a commit 92b22f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apriltag/apriltag-track-movie/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
13 changes: 7 additions & 6 deletions apriltag/apriltag-track-movie/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ pub fn run_cli(cli: Cli) -> Result<()> {

let mut frame_store;

let frame_iter: &mut dyn Iterator<Item=Result<Y4MFrame, anyhow::Error>> = 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<Item = Result<Y4MFrame, anyhow::Error>> =
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;

Expand Down

0 comments on commit 92b22f6

Please sign in to comment.