chore: Bump Rust edition to 2024 (#27800)
Follow-up to https://github.com/zed-industries/zed/pull/27791 Release Notes: - N/A
This commit is contained in:
parent
d50905e000
commit
dc64ec9cc8
802 changed files with 3775 additions and 3662 deletions
|
@ -1,27 +1,27 @@
|
|||
use super::{
|
||||
Connection,
|
||||
proto::{
|
||||
self, AnyTypedEnvelope, EnvelopedMessage, MessageStream, PeerId, Receipt, RequestMessage,
|
||||
TypedEnvelope,
|
||||
},
|
||||
Connection,
|
||||
};
|
||||
use anyhow::{anyhow, Context as _, Result};
|
||||
use anyhow::{Context as _, Result, anyhow};
|
||||
use collections::HashMap;
|
||||
use futures::{
|
||||
FutureExt, SinkExt, Stream, StreamExt, TryFutureExt,
|
||||
channel::{mpsc, oneshot},
|
||||
stream::BoxStream,
|
||||
FutureExt, SinkExt, Stream, StreamExt, TryFutureExt,
|
||||
};
|
||||
use parking_lot::{Mutex, RwLock};
|
||||
use proto::{ErrorCode, ErrorCodeExt, ErrorExt, RpcError};
|
||||
use serde::{ser::SerializeStruct, Serialize};
|
||||
use serde::{Serialize, ser::SerializeStruct};
|
||||
use std::{
|
||||
fmt, future,
|
||||
future::Future,
|
||||
sync::atomic::Ordering::SeqCst,
|
||||
sync::{
|
||||
atomic::{self, AtomicU32},
|
||||
Arc,
|
||||
atomic::{self, AtomicU32},
|
||||
},
|
||||
time::Duration,
|
||||
time::Instant,
|
||||
|
@ -1030,10 +1030,12 @@ mod tests {
|
|||
|
||||
let _ = io_ended_rx.await;
|
||||
let _ = messages_ended_rx.await;
|
||||
assert!(server_conn
|
||||
.send(WebSocketMessage::Binary(vec![]))
|
||||
.await
|
||||
.is_err());
|
||||
assert!(
|
||||
server_conn
|
||||
.send(WebSocketMessage::Binary(vec![]))
|
||||
.await
|
||||
.is_err()
|
||||
);
|
||||
}
|
||||
|
||||
#[gpui::test(iterations = 50)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue