Skip to content

Conversation

@adonagy
Copy link
Contributor

@adonagy adonagy commented Sep 13, 2024

Enable more clippy lints to deal with potential panics

@tizoc
Copy link
Collaborator

tizoc commented Sep 13, 2024

if possible I would skip build scripts too in addition to tests

@dkuehr dkuehr force-pushed the feat/more-powerfull-clippy branch from 27d7aec to bf241c9 Compare November 7, 2024 18:51
@dkuehr dkuehr force-pushed the feat/more-powerfull-clippy branch from bf241c9 to 307e516 Compare November 7, 2024 21:20
let consensus_state = v2::ConsensusProofOfStakeDataConsensusStateValueStableV2 {
blockchain_length: v2::UnsignedExtendedUInt32StableV1((pred_block.height() + 1).into()),
blockchain_length: v2::UnsignedExtendedUInt32StableV1(
(pred_block.height().saturating_add(1)).into(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dkuehr I am thinking if cases like these shouldn't be fatal failures. If this happens the state will be messed up and we cannot trust it, continuing as if nothing happened will just delay the error until later making things more confusing.

@dkuehr dkuehr force-pushed the feat/more-powerfull-clippy branch from 307e516 to 60b6972 Compare November 8, 2024 20:56
@dkuehr dkuehr marked this pull request as ready for review November 8, 2024 21:43
@dkuehr dkuehr merged commit c0ee386 into develop Nov 8, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants