Commit 9c7f40b
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 a7b1227 commit 9c7f40b
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 | | |
| |||
648 | 650 | | |
649 | 651 | | |
650 | 652 | | |
| 653 | + | |
651 | 654 | | |
652 | 655 | | |
653 | 656 | | |
| |||
667 | 670 | | |
668 | 671 | | |
669 | 672 | | |
| 673 | + | |
670 | 674 | | |
671 | 675 | | |
672 | 676 | | |
| |||
0 commit comments