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
Display
Debug
Suggest when Display ("{}") can be used instead of Debug ("{:?}").
"{}"
"{:?}"
Makes things like bevyengine/bevy#16112 more long-term maintainable
Debug might be intentional (often). Workaround would be to make the suggestion opt-in per-struct.
println!("{:?}", 100);
Could be written as:
println!("{}", 100);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What it does
Suggest when
Display
("{}"
) can be used instead ofDebug
("{:?}"
).Advantage
Makes things like bevyengine/bevy#16112 more long-term maintainable
Drawbacks
Debug
might be intentional (often). Workaround would be to make the suggestion opt-in per-struct.Example
Could be written as:
The text was updated successfully, but these errors were encountered: