Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

image_viewer: Fix `cargo test` errors (#24404)

Marshall Bowers3ab48b31a1fc
diff --git a/crates/image_viewer/Cargo.toml b/crates/image_viewer/Cargo.toml
index cd10ade67b6..7e97775a5ad 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"] }