mirror of
https://github.com/CodingIsOurPassion/CodingIsOurPassion.git
synced 2024-12-28 22:29:19 -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 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 uuid::Uuid;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Application {}
|
||||
|
||||
#[utoipauto]
|
||||
|
@ -20,7 +20,7 @@ impl TestApp {
|
||||
self.socket_addr.ip(),
|
||||
self.socket_addr.port()
|
||||
);
|
||||
if path.starts_with("/") {
|
||||
if path.starts_with('/') {
|
||||
format!("{}{}", address, path)
|
||||
} else {
|
||||
format!("{}/{}", address, path)
|
||||
|
Loading…
Reference in New Issue
Block a user