refactor: 回答情報の変更時に AuthorizationGuardWithContext を使用する #1442
rustfmt
18 files, 53 counts
Details
Results
Format checked | Amount |
---|---|
Files | 18 |
Count | 53 |
Versions
-
rustc 1.85.0-nightly (409998c4e 2024-12-24)
-
cargo 1.85.0-nightly (652623b77 2024-12-20)
-
rustfmt 1.8.0-nightly (409998c4e8 2024-12-24)
Annotations
github-actions / rustfmt
rustfmt check
Original:
```
types::authorization_guard::AuthorizationGuard,
```
Expected:
```
types::{authorization_guard::AuthorizationGuard, authorization_guard_with_context::Read},
```
github-actions / rustfmt
rustfmt check
Original:
```
use domain::types::authorization_guard_with_context::Read;
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
usecase::UseCaseError::{AnswerNotFound, MessageNotFound},
```
Expected:
```
usecase::UseCaseError::{AnswerNotFound, FormNotFound, MessageNotFound},
```
github-actions / rustfmt
rustfmt check
Original:
```
use errors::usecase::UseCaseError::FormNotFound;
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
types::authorization_guard::AuthorizationGuard,
```
Expected:
```
types::{authorization_guard::AuthorizationGuard, authorization_guard_with_context::Read},
```
github-actions / rustfmt
rustfmt check
Original:
```
form::{answer_repository::AnswerRepository, message_repository::MessageRepository},
```
Expected:
```
form::{
answer_repository::AnswerRepository, form_repository::FormRepository,
message_repository::MessageRepository,
},
```
github-actions / rustfmt
rustfmt check
Original:
```
answer::models::AnswerId,
```
Expected:
```
answer::{models::AnswerId, service::AnswerEntryAuthorizationContext},
```
github-actions / rustfmt
rustfmt check
Original:
```
use domain::form::answer::service::AnswerEntryAuthorizationContext;
use domain::repository::form::form_repository::FormRepository;
use domain::types::authorization_guard_with_context::Read;
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
answer::models::AnswerId,
```
Expected:
```
answer::{models::AnswerId, service::AnswerEntryAuthorizationContext},
```
github-actions / rustfmt
rustfmt check
Original:
```
use domain::form::answer::service::AnswerEntryAuthorizationContext;
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
```
Expected:
```
use crate::dto::AnswerDto;
```
github-actions / rustfmt
rustfmt check
Original:
```
use errors::usecase::UseCaseError::FormNotFound;
use errors::{usecase::UseCaseError::AnswerNotFound, Error};
```
Expected:
```
use errors::{
usecase::UseCaseError::{AnswerNotFound, FormNotFound},
Error,
};
```
github-actions / rustfmt
rustfmt check
Original:
```
```
Expected:
```
types::authorization_guard_with_context::AuthorizationGuardWithContext,
```
github-actions / rustfmt
rustfmt check
Original:
```
answer::models::{AnswerEntry, AnswerId, FormAnswerContent},
```
Expected:
```
answer::{
models::{AnswerEntry, AnswerId, AnswerTitle, FormAnswerContent},
service::AnswerEntryAuthorizationContext,
},
```
github-actions / rustfmt
rustfmt check
Original:
```
use crate::dto::AnswerDto;
use domain::form::answer::models::AnswerTitle;
use domain::form::answer::service::AnswerEntryAuthorizationContext;
use domain::types::authorization_guard_with_context::AuthorizationGuardWithContext;
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
models::{AnswerId, AnswerLabelId, FormAnswerContent},
```
Expected:
```
models::{AnswerId, AnswerLabelId, AnswerTitle, FormAnswerContent},
```
github-actions / rustfmt
rustfmt check
Original:
```
use domain::form::answer::models::AnswerTitle;
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
```
Expected:
```
use crate::{
database::components::{DatabaseComponents, NotificationDatabase},
repository::Repository,
};
```
github-actions / rustfmt
rustfmt check
Original:
```
types::authorization_guard::AuthorizationGuard,
```
Expected:
```
types::{
authorization_guard::AuthorizationGuard,
authorization_guard_with_context::{Create, Read, Update},
},
```
github-actions / rustfmt
rustfmt check
Original:
```
use domain::types::authorization_guard_with_context::{Create, Read, Update};
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
use crate::{
database::components::{DatabaseComponents, NotificationDatabase},
repository::Repository,
};
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
types::authorization_guard::AuthorizationGuard,
```
Expected:
```
types::{
authorization_guard::AuthorizationGuard,
authorization_guard_with_context::{Create, Delete, Read, Update},
},
```
github-actions / rustfmt
rustfmt check
Original:
```
use domain::types::authorization_guard_with_context::{Create, Delete, Read, Update};
```
Expected:
```
```
github-actions / rustfmt
rustfmt check
Original:
```
types::authorization_guard::AuthorizationGuard,
```
Expected:
```
types::{
authorization_guard::AuthorizationGuard,
authorization_guard_with_context::{Create, Read},
},
```
github-actions / rustfmt
rustfmt check
Original:
```
use domain::types::authorization_guard_with_context::{Create, Read};
```
Expected:
```
```