Skip to content

Contracts upgrade 0.54.0 (1) #663

Contracts upgrade 0.54.0 (1)

Contracts upgrade 0.54.0 (1) #663

GitHub Actions / clippy failed Nov 22, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (1)

contracts/dn404/tests/setup.rs|35 col 5| warning: you should consider adding a Default implementation for Dn404Setup
--> contracts/dn404/tests/setup.rs:35:5
|
35 | / pub fn new() -> Self {
36 | | let mut b_mock = world();
37 | |
38 | | let roles = vec![
... |
141 | | Dn404Setup { b_mock }
142 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: #[warn(clippy::new_without_default)] on by default
help: try adding this
|
34 + impl Default for Dn404Setup {
35 + fn default() -> Self {
36 + Self::new()
37 + }
38 + }
|

Filtered Findings (0)

Annotations

Check warning on line 35 in contracts/dn404/tests/setup.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/dn404/tests/setup.rs#L35

warning: you should consider adding a `Default` implementation for `Dn404Setup`
   --> contracts/dn404/tests/setup.rs:35:5
    |
35  | /     pub fn new() -> Self {
36  | |         let mut b_mock = world();
37  | |
38  | |         let roles = vec![
...   |
141 | |         Dn404Setup { b_mock }
142 | |     }
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
    = note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
    |
34  + impl Default for Dn404Setup {
35  +     fn default() -> Self {
36  +         Self::new()
37  +     }
38  + }
    |
Raw output
contracts/dn404/tests/setup.rs:35:5:w:warning: you should consider adding a `Default` implementation for `Dn404Setup`
   --> contracts/dn404/tests/setup.rs:35:5
    |
35  | /     pub fn new() -> Self {
36  | |         let mut b_mock = world();
37  | |
38  | |         let roles = vec![
...   |
141 | |         Dn404Setup { b_mock }
142 | |     }
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
    = note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
    |
34  + impl Default for Dn404Setup {
35  +     fn default() -> Self {
36  +         Self::new()
37  +     }
38  + }
    |


__END__