Fix error in tests
This commit is contained in:
@@ -221,7 +221,7 @@ impl TestServer {
|
|||||||
fs: fs.clone(),
|
fs: fs.clone(),
|
||||||
build_window_options: |_, _, _| Default::default(),
|
build_window_options: |_, _, _| Default::default(),
|
||||||
node_runtime: FakeNodeRuntime::new(),
|
node_runtime: FakeNodeRuntime::new(),
|
||||||
call_factory: |_, _| Box::new(workspace::TestCallHandler),
|
call_factory: |_| Box::new(workspace::TestCallHandler),
|
||||||
});
|
});
|
||||||
|
|
||||||
cx.update(|cx| {
|
cx.update(|cx| {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ pub fn marked_display_snapshot(
|
|||||||
let (unmarked_text, markers) = marked_text_offsets(text);
|
let (unmarked_text, markers) = marked_text_offsets(text);
|
||||||
|
|
||||||
let font = cx.text_style().font();
|
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 buffer = MultiBuffer::build_simple(&unmarked_text, cx);
|
||||||
let display_map = cx.build_model(|cx| DisplayMap::new(buffer, font, font_size, None, 1, 1, cx));
|
let display_map = cx.build_model(|cx| DisplayMap::new(buffer, font, font_size, None, 1, 1, cx));
|
||||||
|
|||||||
Reference in New Issue
Block a user