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.

Fix error in tests

Antonio Scandurrad2c1897385ba
diff --git a/crates/collab2/src/tests/test_server.rs b/crates/collab2/src/tests/test_server.rs
index 969869599b3..5f95f00d6fc 100644
--- a/crates/collab2/src/tests/test_server.rs
+++ b/crates/collab2/src/tests/test_server.rs
@@ -221,7 +221,7 @@ impl TestServer {
fs: fs.clone(),
build_window_options: |_, _, _| Default::default(),
node_runtime: FakeNodeRuntime::new(),
- call_factory: |_, _| Box::new(workspace::TestCallHandler),
+ call_factory: |_| Box::new(workspace::TestCallHandler),
});
cx.update(|cx| {
diff --git a/crates/editor2/src/test.rs b/crates/editor2/src/test.rs
index ec37c57f2c9..4f6e157e4e0 100644
--- a/crates/editor2/src/test.rs
+++ b/crates/editor2/src/test.rs
@@ -27,7 +27,7 @@ pub fn marked_display_snapshot(
let (unmarked_text, markers) = marked_text_offsets(text);
let font = cx.text_style().font();
- let font_size: Pixels = 14.into();
+ let font_size: Pixels = 14usize.into();
let buffer = MultiBuffer::build_simple(&unmarked_text, cx);
let display_map = cx.build_model(|cx| DisplayMap::new(buffer, font, font_size, None, 1, 1, cx));