diff --git a/control-plane/tests/vision_http.rs b/control-plane/tests/vision_http.rs index 5c5c4085..c83b8e47 100644 --- a/control-plane/tests/vision_http.rs +++ b/control-plane/tests/vision_http.rs @@ -75,8 +75,7 @@ fn fake_encoder(dir: &Path, mode: &str) -> VisionConfig { struct Harness { base: String, dir: PathBuf, - /// The concrete encoder: the state only holds it as a port. - vision: Option>, + vision: Option>, // concrete; the state holds it as a port stop: watch::Sender, worker: tokio::task::JoinHandle<()>, server: tokio::task::JoinHandle<()>, @@ -122,9 +121,7 @@ impl Harness { tokenizer: Some(Arc::new(strata_control::codec::qwen_codec_shared( tokenizer.clone(), ))), - vision: vision - .clone() - .map(|v| v as strata_control::ports::SharedVisionEncoder), + vision: vision.clone().map(|v| v as _), ..Default::default() }; let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();