Repository navigation
Commit 85c06c6
feat: enable clippy::fallible_impl_from
Catches `From` implementations that can panic, where `TryFrom` would be
the honest signature.
All three existing hits would need a breaking API change to fix, so they
get `#[expect]` for now. Two of them (`Constraint`) panic on a protobuf
message with an unset `constraint_mode`, i.e. on malformed input.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>1 parent a7b89ec commit 85c06c6
3 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5353 | 5353 | | |
5354 | 5354 | | |
5355 | 5355 | | |
| 5356 | + | |
| 5357 | + | |
| 5358 | + | |
| 5359 | + | |
5356 | 5360 | | |
5357 | 5361 | | |
5358 | 5362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
753 | 757 | | |
754 | 758 | | |
755 | 759 | | |
| |||
882 | 886 | | |
883 | 887 | | |
884 | 888 | | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
885 | 893 | | |
886 | 894 | | |
887 | 895 | | |
| |||
0 commit comments