Skip to content

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

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

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

GitHub Actions / clippy failed Dec 30, 2024 in 0s

clippy

3 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 3
Warning 0
Note 0
Help 0

Versions

  • rustc 1.83.0 (90b35a623 2024-11-26)

  • cargo 1.83.0 (5ffbef321 2024-10-29)

  • cargo 1.83.0 (5ffbef321 2024-10-29)

Annotations

Check failure on line 25 in domain/src/types/verified.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

methods called `new` usually return `Self`

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)]`

Check failure on line 8 in domain/src/form/answer/service.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `AnswerTitle` and `FormId`

error: unused imports: `AnswerTitle` and `FormId`
 --> domain/src/form/answer/service.rs:8:39
  |
8 |         answer::models::{AnswerEntry, AnswerTitle},
  |                                       ^^^^^^^^^^^
9 |         models::{FormId, Visibility},
  |                  ^^^^^^

Check failure on line 7 in domain/src/form/answer/models.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `std::collections::HashMap`

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)]`