Commit 8a7fc37
cpuid: allow unused unsafes
Rust 1.94 has switched a number of cpuid-related methods from
unsafe to safe. We initially removed the "unsafe" block to make
clippy happy, but this would make libkrun harder to package on
distros that are a bit conservative with their Rust versions.
Since there isn't any real impact, let's temporarily allow unused
unsafes on the affected methods instead.
Suggested-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Sergio Lopez <slp@redhat.com>1 parent e0cf1f4 commit 8a7fc37
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments