Commit 46ba748
committed
refactor: Remove some getters and setters for boot_source
The initialization code for the `boot_source` field in
`build_boot_source` had me do a double take when I first saw, with all
the setters and getters obscuring what is really happening. Clean this
up by simply using a struct initializer, and also remove the getters and
setters altogether, since all the fields are pub anyway.
Signed-off-by: Patrick Roy <[email protected]>1 parent 1320786 commit 46ba748
3 files changed
+13
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
263 | 265 | | |
264 | 266 | | |
265 | 267 | | |
| |||
508 | 510 | | |
509 | 511 | | |
510 | 512 | | |
511 | | - | |
| 513 | + | |
512 | 514 | | |
513 | 515 | | |
514 | 516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | 318 | | |
329 | 319 | | |
330 | 320 | | |
| |||
354 | 344 | | |
355 | 345 | | |
356 | 346 | | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
361 | 351 | | |
362 | | - | |
363 | | - | |
364 | | - | |
| 352 | + | |
365 | 353 | | |
366 | 354 | | |
367 | 355 | | |
| |||
512 | 500 | | |
513 | 501 | | |
514 | 502 | | |
515 | | - | |
| 503 | + | |
516 | 504 | | |
517 | 505 | | |
518 | 506 | | |
| |||
1521 | 1509 | | |
1522 | 1510 | | |
1523 | 1511 | | |
1524 | | - | |
1525 | | - | |
1526 | | - | |
1527 | | - | |
1528 | | - | |
1529 | | - | |
1530 | | - | |
1531 | | - | |
1532 | | - | |
1533 | 1512 | | |
1534 | 1513 | | |
1535 | 1514 | | |
| |||
1541 | 1520 | | |
1542 | 1521 | | |
1543 | 1522 | | |
1544 | | - | |
| 1523 | + | |
1545 | 1524 | | |
1546 | 1525 | | |
1547 | 1526 | | |
| |||
1568 | 1547 | | |
1569 | 1548 | | |
1570 | 1549 | | |
1571 | | - | |
| 1550 | + | |
1572 | 1551 | | |
1573 | 1552 | | |
1574 | 1553 | | |
| |||
0 commit comments