Commit e175be3
refactor(har-abi): forbid(unsafe_code) + unify abi_tag → to_abi_tag (#113)
Two small polish items from reviewing the shared `har-abi` crate:
- Add **`#![forbid(unsafe_code)]`** — every other HAR crate has it and
har-abi
has zero unsafe; this just makes it consistent and enforced.
- Rename **`DeliveryGuarantee::abi_tag` → `to_abi_tag`** so all five tag
enums
expose the same method name (`to_abi_tag` / `from_abi_tag`).
`DeliveryGuarantee`
was the odd one out. All call sites are internal to har-abi, so this is
non-breaking for external consumers (there are none yet).
No behaviour change. `cargo test` / `clippy -D warnings` / `fmt --check`
all green.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d873cc7 commit e175be3
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
61 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
272 | 275 | | |
273 | 276 | | |
274 | 277 | | |
275 | | - | |
| 278 | + | |
276 | 279 | | |
277 | 280 | | |
278 | 281 | | |
| |||
395 | 398 | | |
396 | 399 | | |
397 | 400 | | |
398 | | - | |
399 | | - | |
400 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
401 | 404 | | |
402 | 405 | | |
403 | 406 | | |
| |||
420 | 423 | | |
421 | 424 | | |
422 | 425 | | |
423 | | - | |
| 426 | + | |
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
| |||
0 commit comments