Skip to content

feat: Verified 型を用いてAnswerEntryのPostを表現する #1383

feat: Verified 型を用いてAnswerEntryのPostを表現する

feat: Verified 型を用いてAnswerEntryのPostを表現する #1383

Triggered via push December 30, 2024 15:41
Status Failure
Total duration 3m 29s
Artifacts

ci.yaml

on: push
rustfmt check
17s
rustfmt check
Lint and test server
2m 53s
Lint and test server
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 16 warnings
methods called `new` usually return `Self`: domain/src/types/verified.rs#L23
error: methods called `new` usually return `Self` --> domain/src/types/verified.rs:23:5 | 23 | / fn new(inner: T) -> Verified<T> { 24 | | Verified { inner } 25 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self = note: `-D clippy::new-ret-no-self` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::new_ret_no_self)]`
unused imports: `AnswerTitle` and `FormId`: domain/src/form/answer/service.rs#L8
error: unused imports: `AnswerTitle` and `FormId` --> domain/src/form/answer/service.rs:8:39 | 8 | answer::models::{AnswerEntry, AnswerTitle}, | ^^^^^^^^^^^ 9 | models::{FormId, Visibility}, | ^^^^^^
unused import: `std::collections::HashMap`: domain/src/form/answer/models.rs#L7
error: unused import: `std::collections::HashMap` --> domain/src/form/answer/models.rs:7:5 | 7 | use std::collections::HashMap; | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]`
Lint and test server
Clippy had exited with the 101 exit code: Checking cfg-if v1.0.0 Checking libc v0.2.167 Checking memchr v2.7.4 Checking serde v1.0.216 Checking pin-project-lite v0.2.15 Checking smallvec v1.13.2 Checking once_cell v1.20.2 Checking itoa v1.0.14 Checking futures-core v0.3.31 Checking bytes v1.9.0 Checking zerofrom v0.1.5 Checking stable_deref_trait v1.2.0 Checking yoke v0.7.5 Checking getrandom v0.2.15 Checking futures-io v0.3.31 Checking zerovec v0.10.4 Checking slab v0.4.9 Checking futures-sink v0.3.31 Checking scopeguard v1.2.0 Checking litemap v0.7.4 Checking value-bag v1.10.0 Checking writeable v0.5.5 Checking log v0.4.22 Checking lock_api v0.4.12 Checking parking_lot_core v0.9.10 Checking ryu v1.0.18 Checking byteorder v1.5.0 Checking parking_lot v0.12.3 Checking tinystr v0.7.6 Checking zerocopy v0.7.35 Checking tracing-core v0.1.33 Checking icu_locid v1.5.0 Checking spin v0.9.8 Checking icu_locid_transform_data v1.5.0 Checking percent-encoding v2.3.1 Checking form_urlencoded v1.2.1 Checking icu_provider v1.5.0 Checking icu_collections v1.5.0 Checking mio v1.0.3 Checking serde_json v1.0.133 Checking icu_locid_transform v1.5.0 Checking signal-hook-registry v1.4.2 Checking socket2 v0.5.8 Checking icu_properties_data v1.5.0 Checking pin-utils v0.1.0 Checking tracing v0.1.41 Checking tokio v1.42.0 Checking futures-channel v0.3.31 Checking icu_properties v1.5.1 Checking icu_normalizer_data v1.5.0 Checking utf8_iter v1.0.4 Checking utf16_iter v1.0.5 Checking write16 v1.0.0 Checking futures-task v0.3.31 Checking libm v0.2.11 Checking futures-util v0.3.31 Checking rand_core v0.6.4 Checking subtle v2.6.1 Checking num-traits v0.2.19 Checking uuid v1.11.0 Checking icu_normalizer v1.5.0 Compiling num-conv v0.1.0 Checking powerfmt v0.2.0 Checking idna_adapter v1.2.0 Compiling time-core v0.1.2 Checking idna v1.0.3 Compiling time-macros v0.2.19 Checking deranged v0.3.11 Checking ppv-lite86 v0.2.20 Checking const-oid v0.9.6 Checking rand_chacha v0.3.1 Checking typenum v1.17.0 Checking url v2.5.4 Checking rand v0.8.5 Checking generic-array v0.14.7 Checking fnv v1.0.7 Checking crossbeam-utils v0.8.20 Checking thiserror v1.0.69 Checking zeroize v1.8.1 Checking hex v0.4.3 Checking concurrent-queue v2.5.0 Checking time v0.3.37 Checking crypto-common v0.1.6 Checking block-buffer v0.10.4 Checking hashbrown v0.15.2 Checking parking v2.2.1 Checking digest v0.10.7 Checking equivalent v1.0.1 Checking http v1.2.0 Checking num-integer v0.1.46 Checking bitflags v2.6.0 Checking indexmap v2.7.0 Checking�[
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/answer.rs#L20
Original: ``` ``` Expected: ``` use crate::dto::AnswerDto; ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/answer.rs#L16
Original: ``` ``` Expected: ``` types::verified::Verifier, ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/answer.rs#L7
Original: ``` answer::models::{AnswerId, FormAnswerContent}, ``` Expected: ``` answer::{ models::{AnswerEntry, AnswerId, FormAnswerContent}, service::PostAnswerEntriesVerifier, }, ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/usecase/src/forms/answer.rs#L1
Original: ``` use crate::dto::AnswerDto; use domain::form::answer::models::AnswerEntry; use domain::form::answer::service::PostAnswerEntriesVerifier; use domain::types::verified::Verifier; ``` Expected: ``` ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/form_repository_impls/answer_repository_impl.rs#L16
Original: ``` ``` Expected: ``` use crate::{ database::components::{DatabaseComponents, FormAnswerDatabase}, repository::Repository, }; ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/infra/resource/src/repository/form_repository_impls/answer_repository_impl.rs#L1
Original: ``` use crate::{ database::components::{DatabaseComponents, FormAnswerDatabase}, repository::Repository, }; ``` Expected: ``` ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/domain/src/repository/form/answer_repository.rs#L9
Original: ``` use crate::types::verified::Verified; ``` Expected: ``` ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/domain/src/repository/form/answer_repository.rs#L5
Original: ``` use crate::form::{ answer::models::{AnswerEntry, AnswerId, FormAnswerContent}, models::FormId, ``` Expected: ``` use crate::{ form::{ answer::models::{AnswerEntry, AnswerId, FormAnswerContent}, models::FormId, }, types::verified::Verified, ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/domain/src/form/answer/service.rs#L12
Original: ``` ``` Expected: ``` types::verified::{Verified, Verifier}, ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/domain/src/form/answer/service.rs#L5
Original: ``` use crate::types::verified::{Verified, Verifier}; ``` Expected: ``` ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/domain/src/form/answer/models.rs#L7
Original: ``` use std::collections::HashMap; ``` Expected: ``` ```
rustfmt check: /home/runner/work/seichi-portal-backend/seichi-portal-backend/server/domain/src/form/answer/models.rs#L1
Original: ``` ``` Expected: ``` use std::collections::HashMap; ```
rustfmt check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint and test server
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636