Skip to content

Inconsistent underscores false positive? #6836

@gilescope

Description

@gilescope

Ok so this is a fun one. cargo fmt doesn't understand astetics of verticals alas ( rust-lang/rustfmt#4710 ), but with the odd trailing _ you can fool cargo fmt into doing the right thing and making things beautiful:

https://github.com/mimblewimble/grin/pull/3572/files

But clippy's not happy with inconsistent underscores. ( https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping )

Is there a better solution than a few trailing underscores? (leading underscores are banned) if not, could clippy not complain about trailing underscores please?

Tables come up a lot in programming so it would be nice to have good ways to format them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions