Commit ceabcd8
committed
Remove useless check (drive-by cleanup)
While it might *seem* that this does something, it actually doesn't.
`mut_borrow_of_mutable_ref` returns a `bool` that is ignored by the
let-else. This was basically
```rust
if !self.body.local_decls.get(local).is_some() {
return
}
```
Which is pretty useless1 parent 4eac6fe commit ceabcd8
1 file changed
+1
-15
lines changedLines changed: 1 addition & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
959 | 958 | | |
960 | 959 | | |
961 | 960 | | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
| 961 | + | |
967 | 962 | | |
968 | 963 | | |
969 | 964 | | |
| |||
1271 | 1266 | | |
1272 | 1267 | | |
1273 | 1268 | | |
1274 | | - | |
1275 | 1269 | | |
1276 | 1270 | | |
1277 | 1271 | | |
1278 | 1272 | | |
1279 | 1273 | | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | 1274 | | |
1289 | 1275 | | |
1290 | 1276 | | |
| |||
0 commit comments