Commit cfffb77
committed
fix(clippy): replace map_or_else with unwrap_or_else for identity closure
The identity closure |t| t in map_or_else is unnecessary.
Using unwrap_or_else is more idiomatic when the Some value
doesn't need transformation.1 parent e940260 commit cfffb77
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments