mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Fix warning
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
41ec4645ab
commit
ff24766319
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
use async_tungstenite::tungstenite::{Error as WebSocketError, Message as WebSocketMessage};
|
||||
use futures::{channel::mpsc, SinkExt as _, Stream, StreamExt as _};
|
||||
use futures::{SinkExt as _, Stream, StreamExt as _};
|
||||
use std::{io, task::Poll};
|
||||
|
||||
pub struct Connection {
|
||||
|
@ -57,7 +57,7 @@ impl Connection {
|
|||
Box<dyn Send + Unpin + futures::Sink<WebSocketMessage, Error = WebSocketError>>,
|
||||
Box<dyn Send + Unpin + futures::Stream<Item = Result<WebSocketMessage, WebSocketError>>>,
|
||||
) {
|
||||
use futures::SinkExt as _;
|
||||
use futures::channel::mpsc;
|
||||
use io::{Error, ErrorKind};
|
||||
|
||||
let (tx, rx) = mpsc::unbounded::<WebSocketMessage>();
|
||||
|
|
Loading…
Reference in a new issue