From 8befe4622984822b62ada32472c2a27f147c0d62 Mon Sep 17 00:00:00 2001 From: ravenclaw900 <50060110+ravenclaw900@users.noreply.github.com> Date: Tue, 18 Jan 2022 09:26:34 -0600 Subject: [PATCH] refactor(backend): remove usage of path macro Our usage of it is very simple, so we might as well just do it manually --- src/backend/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/src/main.rs b/src/backend/src/main.rs index 91a00f47..fec66e48 100644 --- a/src/backend/src/main.rs +++ b/src/backend/src/main.rs @@ -96,7 +96,8 @@ fn main() { "*", )); - let terminal_route = warp::path!("ws" / "term") + let terminal_route = warp::path("ws") + .and(warp::path("term")) .and(warp::ws()) .map(|ws: warp::ws::Ws| ws.on_upgrade(terminal::term_handler));