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
github-actions / rustfmt
rustfmt check
Original:
```
http::{Request, StatusCode},
```
Expected:
```
http::{HeaderValue, Request, StatusCode},
```
github-actions / rustfmt
rustfmt check
Original:
```
use axum::http::HeaderValue;
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
```
Expected:
```
m20231008_135425_create_user_table::UsersTable,
```
github-actions / rustfmt
rustfmt check
Original:
```
use crate::m20231008_135425_create_user_table::UsersTable;
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
```
Expected:
```
use crate::m20231008_135425_create_user_table::UsersTable;
```
github-actions / rustfmt
rustfmt check
Original:
```
use crate::m20231008_135425_create_user_table::UsersTable;
```
Expected:
```
```
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(),
],
))
```
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,
};
```
github-actions / rustfmt
rustfmt check
Original:
```
```
Expected:
```
use super::sea_orm_active_enums::QuestionType;
```
github-actions / rustfmt
rustfmt check
Original:
```
use super::sea_orm_active_enums::QuestionType;
```
Expected:
```
```
Loading