summaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2024-12-29 22:51:42 +0100
committerJoel Klinghed <the_jk@spawned.biz>2024-12-29 22:51:42 +0100
commit28c428b8a37fe6607fb50d96fbbb9263433bacb5 (patch)
tree2b67fa16114dc0d293ed232f14c54e24b06c90d6 /server/src/main.rs
parent6c6e57f606337ba692d3c5dfc03a33d39f389d62 (diff)
Minor cleanup
Let auth::stage() deal with having to clone the string It shouldn't force the caller to create a String object.
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs2
1 files changed, 1 insertions, 1 deletions
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?;