Skip to content

Commit

Permalink
Format Rust code using rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 28, 2024
1 parent 3a99b1f commit 9359cd1
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions crates/core/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,23 +319,27 @@ impl HyperHandler {
{
use bytes::Bytes;
use std::sync::Mutex;
if let Some(session) =
req.extensions.remove::<Arc<crate::proto::WebTransportSession<
salvo_http3::http3_quinn::Connection,
Bytes,
>>>()
{
if let Some(session) = req.extensions.remove::<Arc<
crate::proto::WebTransportSession<salvo_http3::http3_quinn::Connection, Bytes>,
>>() {
res.extensions.insert(session);
}
if let Some(conn) = req.extensions.remove::<Arc<Mutex<
salvo_http3::server::Connection<salvo_http3::http3_quinn::Connection, Bytes>,
>>>() {
if let Some(conn) = req.extensions.remove::<Arc<
Mutex<
salvo_http3::server::Connection<
salvo_http3::http3_quinn::Connection,
Bytes,
>,
>,
>>() {
res.extensions.insert(conn);
}
if let Some(stream) = req.extensions.remove::<Arc<salvo_http3::server::RequestStream<
salvo_http3::http3_quinn::BidiStream<Bytes>,
Bytes,
>>>() {
if let Some(stream) = req.extensions.remove::<Arc<
salvo_http3::server::RequestStream<
salvo_http3::http3_quinn::BidiStream<Bytes>,
Bytes,
>,
>>() {
res.extensions.insert(stream);
}
}
Expand Down

0 comments on commit 9359cd1

Please sign in to comment.