Skip to content

Commit fc0a2ef

Browse files
committed
Cleanup
1 parent 4e3fce7 commit fc0a2ef

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/smart_ptr.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::ffi::c_void;
22

33
use opencv::core::Ptr;
4-
use opencv::flann::IndexParams;
54
use opencv::prelude::*;
65
use opencv::Result;
76

@@ -33,6 +32,9 @@ fn ptr_f32_into_raw() -> Result<()> {
3332

3433
#[test]
3534
fn into_raw_ptrofboxed() -> Result<()> {
35+
#![cfg(ocvrs_has_module_flann)]
36+
use opencv::flann::IndexParams;
37+
3638
#[inline(never)]
3739
fn into_raw(a: Ptr<IndexParams>) -> *mut c_void {
3840
a.into_raw()

tests/videoio.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#![cfg(ocvrs_has_module_imgproc)]
22

33
use matches::assert_matches;
4-
use opencv::videoio::VideoWriter;
54
use opencv::{core, Error, Result};
65

76
#[test]
87
fn fourcc() -> Result<()> {
8+
#![cfg(ocvrs_has_module_videoio)]
9+
use opencv::videoio::VideoWriter;
10+
911
let fourcc = VideoWriter::fourcc('a', 'v', 'c', '1')?;
1012
assert_eq!(fourcc, 0x31637661);
1113
let fourcc_error = VideoWriter::fourcc('😀', 'v', 'c', '1');

0 commit comments

Comments
 (0)