We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
useless-format
#[encoding(tags = "u8")]
Describe the bug The useless-format clippy lint triggers when defining the tag size for an enum.
To Reproduce
#[derive(HasEncoding, NomReader, BinWriter)] #[encoding(tags = "u8")] enum Example { First, Second }
Running cargo clippy -- --deny warnings results in:
cargo clippy -- --deny warnings
error: useless use of `format!` --> <file> | 36 | #[encoding(tags = "u8")] | ^^^^ help: consider using `.to_string()`: `"u8".to_string()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format = note: `-D clippy::useless-format` implied by `-D warnings`
Expected behavior The lint is not triggered
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The
useless-format
clippy lint triggers when defining the tag size for an enum.To Reproduce
Running
cargo clippy -- --deny warnings
results in:Expected behavior
The lint is not triggered
The text was updated successfully, but these errors were encountered: