Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(iota-core): silence unused variable warning #3918

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

Thoralf-M
Copy link
Member

Description of change

Silence unused variable warning

warning: unused variable: `ccp_digest`
    --> crates/iota-core/src/checkpoints/mod.rs:1107:22
     |
1107 |         if let Some((ccp_digest, ccp_effects)) = consensus_commit_prologue {
     |                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ccp_digest`
     |
     = note: `#[warn(unused_variables)]` on by default

it's used when compiling not in release mode because of #[cfg(debug_assertions)]

Type of change

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

cargo check -r

@Thoralf-M Thoralf-M added the dev-tools Issues related to the Developer Tools Team label Nov 5, 2024
@Thoralf-M Thoralf-M requested review from a team as code owners November 5, 2024 20:05
@thibault-martinez thibault-martinez merged commit 87149d2 into develop Nov 6, 2024
40 checks passed
@thibault-martinez thibault-martinez deleted the dev-tools/iota-core-warning branch November 6, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants