Change RpcClient methods to take shared references

This will make it easier to spawn a future on gpui's executors
when calling `RpcClient` methods.

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-06-14 19:59:46 +02:00
co-authored by Max Brunsfeld
parent e551894189
commit a87d4db155
5 changed files with 115 additions and 96 deletions
+2 -2
View File
@@ -1207,7 +1207,7 @@ pub trait WorktreeHandle {
fn flush_fs_events<'a>(
&self,
cx: &'a gpui::TestAppContext,
) -> futures_core::future::LocalBoxFuture<'a, ()>;
) -> futures::future::LocalBoxFuture<'a, ()>;
}
impl WorktreeHandle for ModelHandle<Worktree> {
@@ -1268,7 +1268,7 @@ impl WorktreeHandle for ModelHandle<Worktree> {
fn flush_fs_events<'a>(
&self,
cx: &'a gpui::TestAppContext,
) -> futures_core::future::LocalBoxFuture<'a, ()> {
) -> futures::future::LocalBoxFuture<'a, ()> {
use smol::future::FutureExt;
let filename = "fs-event-sentinel";