-
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
add io_other_error
lint
#14022
add io_other_error
lint
#14022
Conversation
9a04adb
to
a00089e
Compare
clippy_lints/src/io_other_error.rs
Outdated
/// `io::ErrorKind::Other`. | ||
/// | ||
/// ### Why is this bad? | ||
/// Since Rust 1.74, there's the `io::Error::other(_)` shortcut. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it unusual to include the MSRV in the lint description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, but I figure it isn't too wordy here.
f7e2c9c
to
f295278
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small nits, otherwise, solid implementation.
(Sorry for the delay with the review)
f295278
to
3c4ca72
Compare
9026e56
to
c815bc4
Compare
c815bc4
to
3fcfbd2
Compare
@xFrednet ping? Do you agree to merge as it is? I'll do the path shortening stuff in another PR. |
This version looks good to me, I though I already created an FCP (which is why I was waiting), but can't find it now. I'll create one. :) Edit: FCP https://rust-lang.zulipchat.com/#narrow/channel/257328-clippy/topic/FCP.3A.20io_other_error |
1844b23
to
7639c6c
Compare
7639c6c
to
6366cca
Compare
@xFrednet shall we merge this as the FCP has run for a week? |
Jup, let's get this merged. Roses are red, MSRV a config in clippy, |
fixes #12717.
r? @xFrednet
changelog: add [
io_other_error
] lint