From 3ab48b31a1fc26c5ed861d017cb835b057c80a24 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 6 Feb 2025 17:38:35 -0500 Subject: [PATCH] image_viewer: Fix `cargo test` errors (#24404) This PR fixes the errors when running `cargo test` in the `image_viewer` crate. Release Notes: - N/A --- crates/image_viewer/Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/image_viewer/Cargo.toml b/crates/image_viewer/Cargo.toml index cd10ade67b..7e97775a5a 100644 --- a/crates/image_viewer/Cargo.toml +++ b/crates/image_viewer/Cargo.toml @@ -12,6 +12,9 @@ workspace = true path = "src/image_viewer.rs" doctest = false +[features] +test-support = ["gpui/test-support"] + [dependencies] anyhow.workspace = true db.workspace = true @@ -25,5 +28,5 @@ ui.workspace = true util.workspace = true workspace.workspace = true -[features] -test-support = ["gpui/test-support"] +[dev-dependencies] +editor = { workspace = true, features = ["test-support"] }