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:
Piotr Osiewicz 2025-03-31 20:55:27 +02:00 committed by GitHub
parent d50905e000
commit dc64ec9cc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
802 changed files with 3775 additions and 3662 deletions

View file

@ -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)]