From a0c3cde0d806ef5f6adb140f4660630576466202 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:35:24 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- ee/tabby-webserver/src/schema/auth.rs | 4 ++-- ee/tabby-webserver/src/schema/email.rs | 2 +- ee/tabby-webserver/src/schema/types.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ee/tabby-webserver/src/schema/auth.rs b/ee/tabby-webserver/src/schema/auth.rs index 263ad51345e4..864c49e0ae0f 100644 --- a/ee/tabby-webserver/src/schema/auth.rs +++ b/ee/tabby-webserver/src/schema/auth.rs @@ -251,13 +251,13 @@ impl relay::NodeType for User { #[derive(Validate, GraphQLInputObject)] pub struct RequestInvitationInput { - #[validate(email(code = "email", message="Invalid email address"))] + #[validate(email(code = "email", message = "Invalid email address"))] pub email: String, } #[derive(Validate, GraphQLInputObject)] pub struct RequestPasswordResetEmailInput { - #[validate(email(code = "email", message="Invalid email address"))] + #[validate(email(code = "email", message = "Invalid email address"))] pub email: String, } diff --git a/ee/tabby-webserver/src/schema/email.rs b/ee/tabby-webserver/src/schema/email.rs index 5023ac0d3d91..1f314564562f 100644 --- a/ee/tabby-webserver/src/schema/email.rs +++ b/ee/tabby-webserver/src/schema/email.rs @@ -32,7 +32,7 @@ pub struct EmailSetting { #[derive(GraphQLInputObject, Validate)] pub struct EmailSettingInput { pub smtp_username: String, - #[validate(email(code = "fromAddress", message="Invalid email address"))] + #[validate(email(code = "fromAddress", message = "Invalid email address"))] pub from_address: String, pub smtp_server: String, pub smtp_port: i32, diff --git a/ee/tabby-webserver/src/schema/types.rs b/ee/tabby-webserver/src/schema/types.rs index f2ed82793df0..3807cf9d4c61 100644 --- a/ee/tabby-webserver/src/schema/types.rs +++ b/ee/tabby-webserver/src/schema/types.rs @@ -9,7 +9,7 @@ pub struct CreateRepositoryProviderInput { message = "Invalid repository provider name" ))] pub display_name: String, - #[validate(length(code = "accessToken", min = 10, message="Invalid access token"))] + #[validate(length(code = "accessToken", min = 10, message = "Invalid access token"))] pub access_token: String, } @@ -22,6 +22,6 @@ pub struct UpdateRepositoryProviderInput { message = "Invalid repository provider name" ))] pub display_name: String, - #[validate(length(code = "accessToken", min = 10, message="Invalid access token"))] + #[validate(length(code = "accessToken", min = 10, message = "Invalid access token"))] pub access_token: String, }