Skip to content

post_answer関数で複数回答のbulk insertをできるようにする #503

post_answer関数で複数回答のbulk insertをできるようにする

post_answer関数で複数回答のbulk insertをできるようにする #503

GitHub Actions / rustfmt failed Oct 9, 2023 in 0s

rustfmt

6 files, 10 counts

Details

Results

Format checked Amount
Files 6
Count 10

Versions

  • rustc 1.74.0-nightly (62ebe3a2b 2023-09-08)

  • cargo 1.74.0-nightly (d14c85f4e 2023-09-05)

  • rustfmt 1.6.0-nightly (62ebe3a 2023-09-08)

Annotations

Check warning on line 5 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/presentation/src/auth.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  http::{Request, StatusCode},

              ```
            
Expected:

              ```
                  http::{HeaderValue, Request, StatusCode},

              ```
            

Check warning on line 1 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/presentation/src/auth.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use axum::http::HeaderValue;

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 7 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/migration/src/m20230811_062425_create_answer_tables.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              
              ```
            
Expected:

              ```
                  m20231008_135425_create_user_table::UsersTable,

              ```
            

Check warning on line 3 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/migration/src/m20230811_062425_create_answer_tables.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use crate::m20231008_135425_create_user_table::UsersTable;

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 3 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/migration/src/m20220101_000001_create_table.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              
              ```
            
Expected:

              ```
              
use crate::m20231008_135425_create_user_table::UsersTable;

              ```
            

Check warning on line 1 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/migration/src/m20220101_000001_create_table.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use crate::m20231008_135425_create_user_table::UsersTable;

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 409 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/database/form.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                      let id = self.pool.execute(Statement::from_sql_and_values(
            DatabaseBackend::MySql,
                "INSERT INTO answers (form_id, user, title) VALUES (?, (SELECT id FROM users WHERE uuid = UUID_TO_BIN(?)), ?)",
            [answer.form_id.to_owned().into(), answer.uuid.to_string().into(), embed_title.into()])
            )

              ```
            
Expected:

              ```
                      let id = self
            .pool
            .execute(Statement::from_sql_and_values(
                DatabaseBackend::MySql,
                "INSERT INTO answers (form_id, user, title) VALUES (?, (SELECT id FROM users \
                 WHERE uuid = UUID_TO_BIN(?)), ?)",
                [
                    answer.form_id.to_owned().into(),
                    answer.uuid.to_string().into(),
                    embed_title.into(),
                ],
            ))

              ```
            

Check warning on line 3 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/entities/src/prelude.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              pub use super::answers::Entity as Answers;
pub use super::default_answer_titles::Entity as DefaultAnswerTitles;
pub use super::form_choices::Entity as FormChoices;
pub use super::form_meta_data::Entity as FormMetaData;
pub use super::form_questions::Entity as FormQuestions;
pub use super::form_webhooks::Entity as FormWebhooks;
pub use super::real_answers::Entity as RealAnswers;
pub use super::response_period::Entity as ResponsePeriod;
pub use super::users::Entity as Users;

              ```
            
Expected:

              ```
              pub use super::{
    answers::Entity as Answers, default_answer_titles::Entity as DefaultAnswerTitles,
    form_choices::Entity as FormChoices, form_meta_data::Entity as FormMetaData,
    form_questions::Entity as FormQuestions, form_webhooks::Entity as FormWebhooks,
    real_answers::Entity as RealAnswers, response_period::Entity as ResponsePeriod,
    users::Entity as Users,
};

              ```
            

Check warning on line 5 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/entities/src/form_questions.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              
              ```
            
Expected:

              ```
              
use super::sea_orm_active_enums::QuestionType;

              ```
            

Check warning on line 3 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/entities/src/form_questions.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use super::sea_orm_active_enums::QuestionType;

              ```
            
Expected:

              ```
              
              ```