Skip to content

refactor: 回答情報の変更時に AuthorizationGuardWithContext を使用する #1442

refactor: 回答情報の変更時に AuthorizationGuardWithContext を使用する

refactor: 回答情報の変更時に AuthorizationGuardWithContext を使用する #1442

GitHub Actions / rustfmt failed Jan 25, 2025 in 1s

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

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

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  types::authorization_guard::AuthorizationGuard,

              ```
            
Expected:

              ```
                  types::{authorization_guard::AuthorizationGuard, authorization_guard_with_context::Read},

              ```
            

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

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use domain::types::authorization_guard_with_context::Read;

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 19 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/message.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  usecase::UseCaseError::{AnswerNotFound, MessageNotFound},

              ```
            
Expected:

              ```
                  usecase::UseCaseError::{AnswerNotFound, FormNotFound, MessageNotFound},

              ```
            

Check warning on line 17 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/message.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use errors::usecase::UseCaseError::FormNotFound;

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 14 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/message.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  types::authorization_guard::AuthorizationGuard,

              ```
            
Expected:

              ```
                  types::{authorization_guard::AuthorizationGuard, authorization_guard_with_context::Read},

              ```
            

Check warning on line 11 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/message.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                      form::{answer_repository::AnswerRepository, message_repository::MessageRepository},

              ```
            
Expected:

              ```
                      form::{
            answer_repository::AnswerRepository, form_repository::FormRepository,
            message_repository::MessageRepository,
        },

              ```
            

Check warning on line 6 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/message.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                      answer::models::AnswerId,

              ```
            
Expected:

              ```
                      answer::{models::AnswerId, service::AnswerEntryAuthorizationContext},

              ```
            

Check warning on line 1 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/message.rs

See this annotation in the file changed.

@github-actions 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:

              ```
              
              ```
            

Check warning on line 4 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/comment.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                      answer::models::AnswerId,

              ```
            
Expected:

              ```
                      answer::{models::AnswerId, service::AnswerEntryAuthorizationContext},

              ```
            

Check warning on line 1 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/comment.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use domain::form::answer::service::AnswerEntryAuthorizationContext;

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 21 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/answer.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              
              ```
            
Expected:

              ```
              
use crate::dto::AnswerDto;

              ```
            

Check warning on line 18 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/answer.rs

See this annotation in the file changed.

@github-actions 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,
};

              ```
            

Check warning on line 16 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/answer.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              
              ```
            
Expected:

              ```
                  types::authorization_guard_with_context::AuthorizationGuardWithContext,

              ```
            

Check warning on line 7 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/answer.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                      answer::models::{AnswerEntry, AnswerId, FormAnswerContent},

              ```
            
Expected:

              ```
                      answer::{
            models::{AnswerEntry, AnswerId, AnswerTitle, FormAnswerContent},
            service::AnswerEntryAuthorizationContext,
        },

              ```
            

Check warning on line 1 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/answer.rs

See this annotation in the file changed.

@github-actions 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:

              ```
              
              ```
            

Check warning on line 4 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/presentation/src/schemas/form/form_request_schemas.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                      models::{AnswerId, AnswerLabelId, FormAnswerContent},

              ```
            
Expected:

              ```
                      models::{AnswerId, AnswerLabelId, AnswerTitle, FormAnswerContent},

              ```
            

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

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use domain::form::answer::models::AnswerTitle;

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 16 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/notification_repository_impl.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              
              ```
            
Expected:

              ```
              
use crate::{
    database::components::{DatabaseComponents, NotificationDatabase},
    repository::Repository,
};

              ```
            

Check warning on line 10 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/notification_repository_impl.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  types::authorization_guard::AuthorizationGuard,

              ```
            
Expected:

              ```
                  types::{
        authorization_guard::AuthorizationGuard,
        authorization_guard_with_context::{Create, Read, Update},
    },

              ```
            

Check warning on line 6 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/notification_repository_impl.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use domain::types::authorization_guard_with_context::{Create, Read, Update};

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 1 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/notification_repository_impl.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use crate::{
    database::components::{DatabaseComponents, NotificationDatabase},
    repository::Repository,
};

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 9 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/form_repository_impls/message_repository_impl.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  types::authorization_guard::AuthorizationGuard,

              ```
            
Expected:

              ```
                  types::{
        authorization_guard::AuthorizationGuard,
        authorization_guard_with_context::{Create, Delete, Read, Update},
    },

              ```
            

Check warning on line 2 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/form_repository_impls/message_repository_impl.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use domain::types::authorization_guard_with_context::{Create, Delete, Read, Update};

              ```
            
Expected:

              ```
              
              ```
            

Check warning on line 9 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/form_repository_impls/form_repository_impl.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
                  types::authorization_guard::AuthorizationGuard,

              ```
            
Expected:

              ```
                  types::{
        authorization_guard::AuthorizationGuard,
        authorization_guard_with_context::{Create, Read},
    },

              ```
            

Check warning on line 2 in /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/form_repository_impls/form_repository_impl.rs

See this annotation in the file changed.

@github-actions github-actions / rustfmt

rustfmt check

Original:

              ```
              use domain::types::authorization_guard_with_context::{Create, Read};

              ```
            
Expected:

              ```
              
              ```