Commit fcdc6fe
committed
uefi: Fix unused-unsafe warning depending on enabled features
If neither the logger nor global_allocator features is enabled, the unsafe block
here would generated a warning because there was no code in it. Split into two
blocks and gate the blocks behind cfgs to solve this.1 parent 2e4b232 commit fcdc6fe
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
88 | 87 | | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
0 commit comments