chore: fix rustfmt error
This commit is contained in:
@@ -964,7 +964,9 @@ mod sonic {
|
|||||||
pub const SONIC: &str = "/sonic";
|
pub const SONIC: &str = "/sonic";
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn extract_sonic(Garde(Sonic(parameters)): Garde<Sonic<ParametersGarde>>) -> StatusCode {
|
pub async fn extract_sonic(
|
||||||
|
Garde(Sonic(parameters)): Garde<Sonic<ParametersGarde>>,
|
||||||
|
) -> StatusCode {
|
||||||
validate_again(parameters, ())
|
validate_again(parameters, ())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,13 +23,13 @@ pub mod validify;
|
|||||||
#[cfg(feature = "yaml")]
|
#[cfg(feature = "yaml")]
|
||||||
pub mod yaml;
|
pub mod yaml;
|
||||||
|
|
||||||
|
mod sonic;
|
||||||
#[cfg(feature = "toml")]
|
#[cfg(feature = "toml")]
|
||||||
pub mod toml;
|
pub mod toml;
|
||||||
#[cfg(feature = "typed_multipart")]
|
#[cfg(feature = "typed_multipart")]
|
||||||
pub mod typed_multipart;
|
pub mod typed_multipart;
|
||||||
#[cfg(feature = "xml")]
|
#[cfg(feature = "xml")]
|
||||||
pub mod xml;
|
pub mod xml;
|
||||||
mod sonic;
|
|
||||||
|
|
||||||
use axum::http::StatusCode;
|
use axum::http::StatusCode;
|
||||||
use axum::response::{IntoResponse, Response};
|
use axum::response::{IntoResponse, Response};
|
||||||
|
|||||||
@@ -1045,7 +1045,10 @@ async fn test_main() -> anyhow::Result<()> {
|
|||||||
.await?;
|
.await?;
|
||||||
// Modified
|
// Modified
|
||||||
test_executor
|
test_executor
|
||||||
.execute_modified::<Sonic<ParametersValidify>>(Method::POST, sonic::route::SONIC_MODIFIED)
|
.execute_modified::<Sonic<ParametersValidify>>(
|
||||||
|
Method::POST,
|
||||||
|
sonic::route::SONIC_MODIFIED,
|
||||||
|
)
|
||||||
.await?;
|
.await?;
|
||||||
// Validified
|
// Validified
|
||||||
test_executor
|
test_executor
|
||||||
@@ -1056,7 +1059,10 @@ async fn test_main() -> anyhow::Result<()> {
|
|||||||
.await?;
|
.await?;
|
||||||
// ValidifiedByRef
|
// ValidifiedByRef
|
||||||
test_executor
|
test_executor
|
||||||
.execute::<Sonic<ParametersValidify>>(Method::POST, sonic::route::SONIC_VALIDIFIED_BY_REF)
|
.execute::<Sonic<ParametersValidify>>(
|
||||||
|
Method::POST,
|
||||||
|
sonic::route::SONIC_VALIDIFIED_BY_REF,
|
||||||
|
)
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user