Skip to content

Commit

Permalink
MAINT: Allow another clippy lint
Browse files Browse the repository at this point in the history
This one complains about if let Some(_) = option; which I still think is
just as fine as if option.is_some(); `if let` is a nice Rust feature
that works the same way on all enums, no reason to prefer
option-specific methods like `is_some`.
  • Loading branch information
bluss committed Mar 31, 2024
1 parent 19fab7e commit f219674
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#![doc(html_logo_url = "https://rust-ndarray.github.io/images/rust-ndarray_logo.svg")]
#![allow(
unstable_name_collisions, // our `PointerExt` collides with upcoming inherent methods on `NonNull`
clippy::redundant_pattern_matching, // if let is sometimes good style
clippy::many_single_char_names,
clippy::deref_addrof,
clippy::unreadable_literal,
Expand Down

0 comments on commit f219674

Please sign in to comment.