Skip to content

Commit 8bcf5eb

Browse files
fix build
1 parent 1028e75 commit 8bcf5eb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

devolutions-gateway/src/api/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::http::HttpError;
33
use crate::token::Protocol;
44
use crate::DgwState;
55
use axum::extract::ws::{Message, Utf8Bytes};
6-
use axum::extract::{RawQuery, WebSocketUpgrade};
6+
use axum::extract::WebSocketUpgrade;
77
use axum::response::Response;
88
use axum::{Json, Router};
99
use network_scanner::event_bus::ScannerEvent;

devolutions-gateway/src/extract.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,14 @@ where
372372

373373
pub struct RepeatQuery<T>(pub(crate) T);
374374

375-
#[async_trait]
376375
impl<T, S> FromRequest<S> for RepeatQuery<T>
377376
where
378377
T: serde::de::DeserializeOwned,
379378
S: Send + Sync,
380379
{
381380
type Rejection = HttpError;
382381

383-
async fn from_request(req: Request, state: &S) -> Result<Self, Self::Rejection> {
382+
async fn from_request(req:Request, state: &S) -> Result<Self, Self::Rejection> {
384383
let RawQuery(query) = RawQuery::from_request(req, state)
385384
.await
386385
.map_err(|e| HttpError::bad_request().build(e))?;

0 commit comments

Comments
 (0)