Commit 714e762
rustc: Allow Descriptor and VirtioRng to be unused
Rust v1.89.0 is complaining about VirtioRng, VirtioSnd and Descriptor
being unused, remove VirtioRng, VirtioSnd and add #[allow(unused)] to
suppress those warnings.
```console
warning: struct `Descriptor` is never constructed
--> src/rutabaga_gfx/src/rutabaga_os/descriptor.rs:143:12
|
143 | pub struct Descriptor(pub RawDescriptor);
| ^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
```
Signed-off-by: Ruoqing He <[email protected]>1 parent bf7e313 commit 714e762
File tree
3 files changed
+1
-8
lines changed- src
- devices/src/virtio
- rng
- snd
- rutabaga_gfx/src/rutabaga_os
3 files changed
+1
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
0 commit comments