Commit 280aa68
committed
fix(lint): suppress dead code warnings on non-Unix platforms
Add #[cfg_attr(not(unix), allow(dead_code))] to OutputEncoding::BytePreserving,
CustomFormatError::InvalidUtf8, locale_output_encoding(), and decode_byte_preserving()
to allow these items to be unused on non-Unix systems without triggering warnings.
This improves code quality and reduces noise in builds on unsupported platforms.1 parent 7927741 commit 280aa68
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
608 | 610 | | |
609 | 611 | | |
610 | 612 | | |
| 613 | + | |
611 | 614 | | |
612 | 615 | | |
613 | 616 | | |
| |||
627 | 630 | | |
628 | 631 | | |
629 | 632 | | |
| 633 | + | |
630 | 634 | | |
631 | 635 | | |
632 | 636 | | |
| |||
0 commit comments