You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it stands, the Clippy configuration variable avoid-breaking-exported-api defaults to true for binary crates. This probably doesn't make a lot of sense: binaries don't have an API, and it is not uncommon to have pub symbols in them for various reasons: most notably to temporarily suppress "unused" warnings during development.
I would suggest the default for binary crates should be false.
It is worth considering whether there should be a lint for exported API in binary crates. This would catch some unused code cases, as noted above. Let me know if I should file a separate issue for that.
Description
As it stands, the Clippy configuration variable
avoid-breaking-exported-api
defaults totrue
for binary crates. This probably doesn't make a lot of sense: binaries don't have an API, and it is not uncommon to havepub
symbols in them for various reasons: most notably to temporarily suppress "unused" warnings during development.I would suggest the default for binary crates should be
false
.It is worth considering whether there should be a lint for exported API in binary crates. This would catch some unused code cases, as noted above. Let me know if I should file a separate issue for that.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: