From 7bcce23dc9f69dba4e9fbaebfa21bd3fadfbfbf9 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 15 Dec 2021 08:48:50 +0100 Subject: [PATCH] Fix compile error in server integration tests --- crates/server/src/rpc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/server/src/rpc.rs b/crates/server/src/rpc.rs index c46e631c8b..4ca7b34717 100644 --- a/crates/server/src/rpc.rs +++ b/crates/server/src/rpc.rs @@ -932,6 +932,7 @@ mod tests { use std::{ ops::Deref, path::Path, + rc::Rc, sync::{ atomic::{AtomicBool, Ordering::SeqCst}, Arc, @@ -1046,7 +1047,7 @@ mod tests { .unwrap(); let editor_b = cx_b.add_view(window_b, |cx| { - Editor::for_buffer(buffer_b, |cx| EditorSettings::test(cx), cx) + Editor::for_buffer(buffer_b, Rc::new(|cx| EditorSettings::test(cx)), cx) }); // TODO // // Create a selection set as client B and see that selection set as client A.