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

Generate long constants with separators #84

Closed
boxdot opened this issue Dec 18, 2018 · 0 comments
Closed

Generate long constants with separators #84

boxdot opened this issue Dec 18, 2018 · 0 comments
Assignees
Labels

Comments

@boxdot
Copy link
Collaborator

boxdot commented Dec 18, 2018

Example:

Instead of

pub const INFINITE: u32 = 4294967295;

generate

pub const INFINITE: u32 = 4_294_967_295;

This would remove clippy warning in Rust.

Another possibility, would be to use #![allow(clippy:all)]. In the end, this is generated code and is not meant to be very readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants