Commit e16c06e
committed
verification: fix unnecessary lazy evaluations findings
Clippy is flagging a couple instances of this:
```
error: unnecessary closure used with `bool::then`
--> src/verification/android.rs:251:18
|
251 | .map(|o| (!o.is_null()).then(|| o))
| ^^^^^^^^^^^^^^^----------
| |
| help: use `then_some(..)` instead: `then_some(o)`
|
```
This commit applies the recommended fix.1 parent 599c345 commit e16c06e
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
0 commit comments