Skip to content

Commit

Permalink
ci2-simple-async-demo: fix FTBFS
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Dec 1, 2024
1 parent 2089c90 commit 25ff198
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ test_crates:
- LD_LIBRARY_PATH="/opt/pylon/lib" cargo test --features backend_pyloncxx
- cd ..

- cd ci2-simple-async-demo
- LD_LIBRARY_PATH="/opt/pylon/lib" cargo test --features backend_pyloncxx
- cd ..

- cd ci2-cli
- cargo test --features backend_pyloncxx
- cd ..
Expand Down
2 changes: 1 addition & 1 deletion ci2-simple-async-demo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async fn do_capture<C>(cam: &mut ci2_async::ThreadedAsyncCamera<C>) -> Result<()
where
C: 'static + ci2::Camera + Send,
{
let mut stream = cam.frames(10, || {})?.take(10);
let mut stream = cam.frames(10)?.take(10);
while let Some(frame) = stream.next().await {
match frame {
ci2_async::FrameResult::Frame(frame) => {
Expand Down

0 comments on commit 25ff198

Please sign in to comment.