From ea19d26724b4ee16ae4068ab03ef42236857d9c1 Mon Sep 17 00:00:00 2001 From: Roms1383 Date: Tue, 16 Jul 2024 00:25:11 +0700 Subject: [PATCH] fix: error example lints --- actix-web/examples/error.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/actix-web/examples/error.rs b/actix-web/examples/error.rs index 3227252c..96944b55 100644 --- a/actix-web/examples/error.rs +++ b/actix-web/examples/error.rs @@ -54,24 +54,24 @@ async fn main() -> std::io::Result<()> { #[derive(Debug, Deserialize)] pub struct OptionalFilters { - limit: Option, - active: Option, + pub limit: Option, + pub active: Option, } #[derive(Debug, Deserialize)] pub struct MandatoryFilters { - limit: i32, - active: bool, + pub limit: i32, + pub active: bool, } #[derive(Debug, Deserialize)] pub struct OptionalPayload { - name: Option, - age: Option, + pub name: Option, + pub age: Option, } #[derive(Debug, Deserialize)] pub struct MandatoryPayload { - name: String, - age: i32, + pub name: String, + pub age: i32, }