mirror of
https://github.com/CodingIsOurPassion/CodingIsOurPassion.git
synced 2024-12-30 14:09:18 -06:00
refactor(LakeWatchAPI): apply clippy recommendations
This commit is contained in:
parent
740b79313d
commit
60cee1d8ec
@ -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))
|
||||||
}
|
}
|
||||||
|
@ -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]
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user