Commit 1c2288b
committed
Use unwrap_or
Currently we are using `map_or` in a convoluted manner, we can just use
`unwrap_or` to get the inner value or default to 0.
Refactor only, no logic changes.1 parent 77c58fc commit 1c2288b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
0 commit comments