From 28c428b8a37fe6607fb50d96fbbb9263433bacb5 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 29 Dec 2024 22:51:42 +0100 Subject: Minor cleanup Let auth::stage() deal with having to clone the string It shouldn't force the caller to create a String object. --- server/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/main.rs') diff --git a/server/src/main.rs b/server/src/main.rs index 124d914..b8b4b64 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -317,7 +317,7 @@ async fn main() -> Result<(), rocket::Error> { "/", SwaggerUi::new("/openapi/ui/<_..>").url("/openapi/openapi.json", api), ) - .attach(auth::stage(basepath.to_string())) + .attach(auth::stage(basepath)) .launch() .await?; -- cgit v1.2.3-70-g09d2