1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-17 13:46:36 +00:00

fix: error example lints

This commit is contained in:
Roms1383 2024-07-16 00:25:11 +07:00
parent 7038244a7d
commit ea19d26724

View file

@ -54,24 +54,24 @@ async fn main() -> std::io::Result<()> {
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
pub struct OptionalFilters { pub struct OptionalFilters {
limit: Option<i32>, pub limit: Option<i32>,
active: Option<bool>, pub active: Option<bool>,
} }
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
pub struct MandatoryFilters { pub struct MandatoryFilters {
limit: i32, pub limit: i32,
active: bool, pub active: bool,
} }
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
pub struct OptionalPayload { pub struct OptionalPayload {
name: Option<String>, pub name: Option<String>,
age: Option<i32>, pub age: Option<i32>,
} }
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
pub struct MandatoryPayload { pub struct MandatoryPayload {
name: String, pub name: String,
age: i32, pub age: i32,
} }