Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut committed Feb 14, 2025
1 parent 42d73de commit f909127
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion energy-integration/governance-v2/src/configurable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ pub type Timestamp = u64;
///
/// Please note that although the main contract can modify the module's storage directly, it is not recommended to do so,
/// as that defeats the whole purpose of having governance. These parameters should only be modified through actions.
///
const MIN_VOTING_DELAY: Timestamp = 1;

Check warning on line 34 in energy-integration/governance-v2/src/configurable.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] energy-integration/governance-v2/src/configurable.rs#L34

warning: empty line after doc comment --> energy-integration/governance-v2/src/configurable.rs:32:1 | 32 | / /// as that defeats the whole purpose of having governance. These parameters should only be modified through actions. 33 | | | |_^ 34 | const MIN_VOTING_DELAY: Timestamp = 1; | --------------------------------- the comment documents this constant | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default = help: if the empty line is unintentional remove it
Raw output
energy-integration/governance-v2/src/configurable.rs:34:1:w:warning: empty line after doc comment
  --> energy-integration/governance-v2/src/configurable.rs:32:1
   |
32 | / /// as that defeats the whole purpose of having governance. These parameters should only be modified through actions.
33 | |
   | |_^
34 |   const MIN_VOTING_DELAY: Timestamp = 1;
   |   --------------------------------- the comment documents this constant
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
   = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default
   = help: if the empty line is unintentional remove it


__END__

Check warning on line 34 in energy-integration/governance-v2/src/configurable.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] energy-integration/governance-v2/src/configurable.rs#L34

warning: empty line after doc comment --> energy-integration/governance-v2/src/configurable.rs:32:1 | 32 | / /// as that defeats the whole purpose of having governance. These parameters should only be modified through actions. 33 | | | |_^ 34 | const MIN_VOTING_DELAY: Timestamp = 1; | --------------------------------- the comment documents this constant | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default = help: if the empty line is unintentional remove it
Raw output
energy-integration/governance-v2/src/configurable.rs:34:1:w:warning: empty line after doc comment
  --> energy-integration/governance-v2/src/configurable.rs:32:1
   |
32 | / /// as that defeats the whole purpose of having governance. These parameters should only be modified through actions.
33 | |
   | |_^
34 |   const MIN_VOTING_DELAY: Timestamp = 1;
   |   --------------------------------- the comment documents this constant
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
   = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default
   = help: if the empty line is unintentional remove it


__END__
const MAX_VOTING_DELAY: Timestamp = 604_800; // 1 Week
Expand Down

0 comments on commit f909127

Please sign in to comment.