Skip to content

Commit 1e05bae

Browse files
committed
MAINT: Allow another clippy lint
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`.
1 parent a3d26b6 commit 1e05bae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#![doc(html_logo_url = "https://rust-ndarray.github.io/images/rust-ndarray_logo.svg")]
1111
#![allow(
1212
unstable_name_collisions, // our `PointerExt` collides with upcoming inherent methods on `NonNull`
13+
clippy::redundant_pattern_matching, // if let is sometimes good style
1314
clippy::many_single_char_names,
1415
clippy::deref_addrof,
1516
clippy::unreadable_literal,

0 commit comments

Comments
 (0)