Commit f53020f
committed
style: Replace unnecessary
Fixes clippy lints like this:
```
warning: this `map_or` is redundant
--> prost-build/src/ast.rs:104:9
|
104 | / chars
105 | | .next()
106 | | .map_or(false, |c| c != ' ' || chars.next() == Some(' '))
| |_____________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `#[warn(clippy::unnecessary_map_or)]` on by default
```map_or
1 parent 68cf18a commit f53020f
2 files changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
986 | 986 | | |
987 | 987 | | |
988 | 988 | | |
989 | | - | |
| 989 | + | |
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
| 1106 | + | |
1110 | 1107 | | |
1111 | 1108 | | |
1112 | 1109 | | |
| |||
0 commit comments