Skip to content

Commit 5d701b6

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 6a65ef7 commit 5d701b6

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
@@ -8,6 +8,7 @@
88
#![crate_name = "ndarray"]
99
#![doc(html_root_url = "https://docs.rs/ndarray/0.15/")]
1010
#![allow(
11+
clippy::redundant_pattern_matching, // if let is sometimes good style
1112
clippy::many_single_char_names,
1213
clippy::deref_addrof,
1314
clippy::unreadable_literal,

0 commit comments

Comments
 (0)