mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-28 21:32:39 +00:00
Fix warnings
This commit is contained in:
parent
2c78c830eb
commit
03752f913d
1 changed files with 8 additions and 4 deletions
|
@ -1,8 +1,6 @@
|
||||||
use anyhow::{anyhow, Context, Result};
|
use anyhow::{anyhow, Context, Result};
|
||||||
use collections::HashMap;
|
use collections::HashMap;
|
||||||
use futures::{
|
use futures::{channel::oneshot, io::BufWriter, AsyncRead, AsyncWrite};
|
||||||
channel::oneshot, future::BoxFuture, io::BufWriter, AsyncRead, AsyncWrite, FutureExt,
|
|
||||||
};
|
|
||||||
use gpui::{executor, Task};
|
use gpui::{executor, Task};
|
||||||
use parking_lot::{Mutex, RwLock};
|
use parking_lot::{Mutex, RwLock};
|
||||||
use postage::{barrier, prelude::Stream};
|
use postage::{barrier, prelude::Stream};
|
||||||
|
@ -560,7 +558,11 @@ type FakeLanguageServerHandlers = Arc<
|
||||||
&'static str,
|
&'static str,
|
||||||
Box<
|
Box<
|
||||||
dyn Send
|
dyn Send
|
||||||
+ FnMut(usize, &[u8], gpui::AsyncAppContext) -> BoxFuture<'static, Vec<u8>>,
|
+ FnMut(
|
||||||
|
usize,
|
||||||
|
&[u8],
|
||||||
|
gpui::AsyncAppContext,
|
||||||
|
) -> futures::future::BoxFuture<'static, Vec<u8>>,
|
||||||
>,
|
>,
|
||||||
>,
|
>,
|
||||||
>,
|
>,
|
||||||
|
@ -724,6 +726,8 @@ impl FakeLanguageServer {
|
||||||
F: 'static + Send + FnMut(T::Params, gpui::AsyncAppContext) -> Fut,
|
F: 'static + Send + FnMut(T::Params, gpui::AsyncAppContext) -> Fut,
|
||||||
Fut: 'static + Send + Future<Output = T::Result>,
|
Fut: 'static + Send + Future<Output = T::Result>,
|
||||||
{
|
{
|
||||||
|
use futures::FutureExt as _;
|
||||||
|
|
||||||
let (responded_tx, responded_rx) = futures::channel::mpsc::unbounded();
|
let (responded_tx, responded_rx) = futures::channel::mpsc::unbounded();
|
||||||
self.handlers.lock().insert(
|
self.handlers.lock().insert(
|
||||||
T::METHOD,
|
T::METHOD,
|
||||||
|
|
Loading…
Reference in a new issue