`Option::filter` in nova-core/firmware.rs
Subsystems (3)
Alice Ryhl
reviewerHi Nova folks,
I'm seeing this clippy warning with latest nightly rust:
error: manual implementation of Option::filter
--> drivers/gpu/nova-core/firmware.rs:391:14
|
391 | .and_then(|hdr| {
| ______________^
392 | | if hdr.bin_magic == BIN_MAGIC {
393 | | Some(hdr)
394 | | } else {
... |
397 | | })
| |______________^ help: try: `filter(|hdr| hdr.bin_magic == BIN_MAGIC)` |
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter
= note: -D clippy::manual-filter implied by -D warnings
= help: to override -D warnings add #[allow(clippy::manual_filter)]
Alice
Danilo Krummrich
maintainerQuoted 1 line · Alice Ryhl
I'm seeing this clippy warning with latest nightly rust:
Thanks for reporting -- there's already a patch [1] from Eliot for this.