-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Should format_collect
be warn by default?
#11434
Comments
Yeah, we were discussing the category a bit on the PR and centri3 suggested pedantic I think. I wasn't aware of that lint. I do kinda agree now that warn by default might be a bit too strong and maybe this should be in restriction, seeing that |
Rereading my post, though, I didn't mean to suggest that I too think pedantic could make sense. (EDIT: And similarly for |
Right, so I think
I personally think 2) is better (I haven't found a strong argument as to why it should be restriction specifically), but I created a poll on zulip for this: |
Description
format_collect
suggests to replaceformat!
withwrite!
.A downside of this suggestion is that it replaces a infallible function with a fallible one (i.e.,
write!
returns aResult
, whereasformat!
does not).format_push_string
has a similar downside, and it was moved to restriction for this reason.Should the same standard apply to
format_collect
? Or is something about its situation different?cc: @y21, @Centri3
The text was updated successfully, but these errors were encountered: