Skip to content

move tests to cli_bin #77

move tests to cli_bin

move tests to cli_bin #77

GitHub Actions / clippy failed Mar 16, 2024 in 0s

clippy

1 error

Details

Results

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

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check failure on line 12 in crates/cli/src/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

you should consider adding a `Default` implementation for `GoodError`

error: you should consider adding a `Default` implementation for `GoodError`
  --> crates/cli/src/error.rs:10:5
   |
10 | /     pub fn new() -> GoodError {
11 | |         GoodError { message: None }
12 | |     }
   | |_____^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
   = note: `-D clippy::new-without-default` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::new_without_default)]`
help: try adding this
   |
9  + impl Default for GoodError {
10 +     fn default() -> Self {
11 +         Self::new()
12 +     }
13 + }
   |