Skip to content

Governance-v2: Fix GovernanceProposal default #3646

Governance-v2: Fix GovernanceProposal default

Governance-v2: Fix GovernanceProposal default #3646

Triggered via pull request October 30, 2023 13:32
Status Success
Total duration 10m 49s
Artifacts 2
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

actions.yml

on: pull_request
Contracts  /  Wasm tests
10m 36s
Contracts / Wasm tests
Contracts  /  Rust tests
3m 21s
Contracts / Rust tests
Contracts  /  Clippy linter check
1m 3s
Contracts / Clippy linter check
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
[clippy] energy-integration/governance-v2/src/proposal.rs#L84: energy-integration/governance-v2/src/proposal.rs#L84
warning: you should consider adding a `Default` implementation for `GovernanceProposal<M>` --> energy-integration/governance-v2/src/proposal.rs:84:5 | 84 | / pub fn new() -> Self { 85 | | GovernanceProposal { 86 | | proposal_id: 0, 87 | | proposer: ManagedAddress::default(), ... | 102 | | } 103 | | } | |_____^ | = 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 | 83 + impl<M: ManagedTypeApi> Default for GovernanceProposal<M> { 84 + fn default() -> Self { 85 + Self::new() 86 + } 87 + } |
[clippy] energy-integration/governance-v2/src/proposal.rs#L84: energy-integration/governance-v2/src/proposal.rs#L84
warning: you should consider adding a `Default` implementation for `GovernanceProposal<M>` --> energy-integration/governance-v2/src/proposal.rs:84:5 | 84 | / pub fn new() -> Self { 85 | | GovernanceProposal { 86 | | proposal_id: 0, 87 | | proposer: ManagedAddress::default(), ... | 102 | | } 103 | | } | |_____^ | = 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 | 83 + impl<M: ManagedTypeApi> Default for GovernanceProposal<M> { 84 + fn default() -> Self { 85 + Self::new() 86 + } 87 + } |

Artifacts

Produced during runtime
Name Size
report Expired
45.4 KB
report-markdown Expired
2.1 KB