We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0bbeb5 commit bf8a837Copy full SHA for bf8a837
1 file changed
crates/xen/xenplatform/src/lib.rs
@@ -56,11 +56,10 @@ impl RuntimePlatformType {
56
}
57
58
pub fn supported() -> RuntimePlatformType {
59
- if cfg!(target_arch = "x86_64") {
60
- RuntimePlatformType::Pv
61
- } else {
62
- RuntimePlatformType::Unsupported
63
- }
+ #[cfg(target_arch = "x86_64")]
+ return RuntimePlatformType::Pv;
+ #[cfg(not(target_arch = "x86_64"))]
+ return RuntimePlatformType::Unsupported;
64
65
66
0 commit comments