Skip to content

Commit a334c2f

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 53cd653 commit a334c2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#![doc(html_root_url = "https://docs.rs/ndarray/0.15/")]
1010
#![doc(html_logo_url = "https://rust-ndarray.github.io/images/rust-ndarray_logo.svg")]
1111
#![allow(
12+
clippy::redundant_pattern_matching, // if let is sometimes good style
1213
clippy::many_single_char_names,
1314
clippy::deref_addrof,
1415
clippy::unreadable_literal,

0 commit comments

Comments
 (0)