Commit 3296cd6
use Option for MavDeprecation.replaced_by in parser
replaced_by is not always provided, so it's better to store
it as None rather than an empty String.
This applies the following changes without any behavioral change:
- Switch replaced_by to Option<String> in MavDeprecation.
- Parse missing/blank replaced_by as None.
- Update deprecated attribute formatting to handle Option.
Signed-off-by: Onur Özkan <work@onurozkan.dev>1 parent 29fe39e commit 3296cd6
1 file changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1504 | 1504 | | |
1505 | 1505 | | |
1506 | 1506 | | |
1507 | | - | |
1508 | | - | |
| 1507 | + | |
1509 | 1508 | | |
1510 | 1509 | | |
1511 | 1510 | | |
| |||
1517 | 1516 | | |
1518 | 1517 | | |
1519 | 1518 | | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
1526 | 1523 | | |
1527 | 1524 | | |
1528 | 1525 | | |
| |||
1694 | 1691 | | |
1695 | 1692 | | |
1696 | 1693 | | |
1697 | | - | |
| 1694 | + | |
1698 | 1695 | | |
1699 | 1696 | | |
1700 | 1697 | | |
| |||
1856 | 1853 | | |
1857 | 1854 | | |
1858 | 1855 | | |
1859 | | - | |
1860 | | - | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
1861 | 1862 | | |
1862 | 1863 | | |
1863 | 1864 | | |
| |||
0 commit comments