Skip to content

feat: Add #[must_use] to validation result enums #187

@alexanderwiederin

Description

@alexanderwiederin

BlockCheckResult, ProcessBlockResult, and ProcessBlockHeaderResult are all validation results that callers should always inspect.

All three should carry a #[must_use] attribute with a short message:

#[must_use = "check result must be inspected to know if the block is valid"]
pub enum BlockCheckResult { ... }

#[must_use = "placeholder"]
pub enum ProcessBlockResult { ... }

#[must_use = "placeholder"]
pub enum ProcessBlockHeaderResult { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions