style: clippy & fmt

This commit is contained in:
Radical 2025-05-31 17:51:04 +02:00
parent 6783bd22a7
commit 8163d0d9c0
4 changed files with 18 additions and 9 deletions

View file

@ -87,7 +87,11 @@ impl ConfigBuilder {
ip: self.web.ip.unwrap_or(String::from("0.0.0.0")),
port: self.web.port.unwrap_or(8080),
frontend_url: self.web.frontend_url.clone(),
backend_url: self.web.backend_url.or_else(|| self.web.frontend_url.join("/api").ok()).unwrap(),
backend_url: self
.web
.backend_url
.or_else(|| self.web.frontend_url.join("/api").ok())
.unwrap(),
};
let endpoint = match &*self.bunny.endpoint {