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.

Silence spurious log error

Mikayla Makibfb43c67f84c
diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rs
index 19fed4bf590..d830f347449 100644
--- a/crates/workspace/src/dock.rs
+++ b/crates/workspace/src/dock.rs
@@ -470,7 +470,7 @@ mod tests {
use super::*;
use crate::{
dock,
- item::test::TestItem,
+ item::{self, test::TestItem},
persistence::model::{
SerializedItem, SerializedPane, SerializedPaneGroup, SerializedWorkspace,
},
@@ -492,7 +492,7 @@ mod tests {
Settings::test_async(cx);
cx.update(|cx| {
- register_deserializable_item::<TestItem>(cx);
+ register_deserializable_item::<item::test::TestItem>(cx);
});
let serialized_workspace = SerializedWorkspace {
@@ -508,7 +508,7 @@ mod tests {
children: vec![SerializedItem {
active: true,
item_id: 0,
- kind: "test".into(),
+ kind: "TestItem".into(),
}],
},
left_sidebar_open: false,
diff --git a/crates/workspace/src/item.rs b/crates/workspace/src/item.rs
index 0a8311fd5cb..19385038e4a 100644
--- a/crates/workspace/src/item.rs
+++ b/crates/workspace/src/item.rs
@@ -919,7 +919,7 @@ pub(crate) mod test {
}
fn serialized_item_kind() -> Option<&'static str> {
- None
+ Some("TestItem")
}
fn deserialize(