refactor(LakeWatchAPI): apply clippy recommendations

This commit is contained in:
Price Hiller 2024-06-19 02:26:25 -05:00
parent 740b79313d
commit 60cee1d8ec
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
3 changed files with 3 additions and 2 deletions

View File

@ -10,5 +10,5 @@ pub mod status;
pub struct ApiDoc; pub struct ApiDoc;
pub fn router() -> Router { pub fn router() -> Router {
return Router::new().route("/status", get(crate::routes::v1::status::status)); Router::new().route("/status", get(crate::routes::v1::status::status))
} }

View File

@ -16,6 +16,7 @@ use utoipa::OpenApi;
use utoipauto::utoipauto; use utoipauto::utoipauto;
use uuid::Uuid; use uuid::Uuid;
#[derive(Default)]
pub struct Application {} pub struct Application {}
#[utoipauto] #[utoipauto]

View File

@ -20,7 +20,7 @@ impl TestApp {
self.socket_addr.ip(), self.socket_addr.ip(),
self.socket_addr.port() self.socket_addr.port()
); );
if path.starts_with("/") { if path.starts_with('/') {
format!("{}{}", address, path) format!("{}{}", address, path)
} else { } else {
format!("{}/{}", address, path) format!("{}/{}", address, path)