blob: 4687794949d34e8b73eccfc581fc8ed80c510762 [file] [log] [blame]
error: `filter` for `Ok` followed by `unwrap`
--> $DIR/result_filter_map.rs:13:10
|
LL | .filter(Result::is_ok)
| __________^
LL | |
LL | | .map(Result::unwrap);
| |____________________________^ help: consider using `flatten` instead: `flatten()`
|
= note: `-D clippy::result-filter-map` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::result_filter_map)]`
error: `filter` for `Ok` followed by `unwrap`
--> $DIR/result_filter_map.rs:19:10
|
LL | .filter(|o| o.is_ok())
| __________^
LL | |
LL | | .map(|o| o.unwrap());
| |____________________________^ help: consider using `flatten` instead: `flatten()`
error: `filter` for `Ok` followed by `unwrap`
--> $DIR/result_filter_map.rs:26:10
|
LL | .filter(Result::is_ok)
| __________^
LL | |
LL | | .map(Result::unwrap);
| |____________________________^ help: consider using `flatten` instead: `flatten()`
error: `filter` for `Ok` followed by `unwrap`
--> $DIR/result_filter_map.rs:32:10
|
LL | .filter(|o| o.is_ok())
| __________^
LL | |
LL | | .map(|o| o.unwrap());
| |____________________________^ help: consider using `flatten` instead: `flatten()`
error: aborting due to 4 previous errors