Skip to content

Conversation

@dunxen
Copy link
Contributor

@dunxen dunxen commented Jan 10, 2025

Rust 1.84.0 was recently released along with some new clippy lints, one of which is unnecessary_map_or. Unfortunately this lint suggests using Option::is_some_and as a fix, but this is only available in Rust
version >= 1.70, while we still have an MSRV of 1.63. So we silence that
lint for now.

We'd still like our lint CI to use stable Rust so that we can benefit from new lint checks which may be helpful and don't require an MSRV bump, but sometimes new lints (like in this case) do.

See:
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some_and

Rust 1.84.0 was recently released along with some new clippy lints, one
of which is `unnecessary_map_or`. Unfortunately this lint suggests using
`Option::is_some_and` as a fix, but this is only available in Rust
 version >= 1.70, while we still have an MSRV of 1.63. So we silence that
lint for now.

We'd still like our lint CI to use stable Rust so that we can benefit from
new lint checks which may be helpful and don't require an MSRV bump, but
sometimes new lints (like in this case) do.

See:
  https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
  https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some_and
Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tnull tnull merged commit cb5bf96 into lightningdevkit:main Jan 10, 2025
17 of 19 checks passed
@dunxen dunxen mentioned this pull request Jan 15, 2025
@TheBlueMatt
Copy link
Collaborator

TheBlueMatt commented Jan 15, 2025

Backported in #3536.

@dunxen dunxen deleted the 2025-01-allow-unnecessary-map-or branch January 20, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants