From d3f33f2b77450f0ee49690bc57bc488f92e454a6 Mon Sep 17 00:00:00 2001 From: "Christopher H. Jordan" Date: Wed, 31 Jul 2024 06:16:26 +0800 Subject: [PATCH] Fix non-x86 CPUs not compiling. (#34) Works fine on M1 macbook air. --- src/model/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/mod.rs b/src/model/mod.rs index 2125bf32..8e4508be 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -111,7 +111,7 @@ pub(crate) fn get_cpu_info() -> String { } #[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))] - Ok(format!("{} CPU", std::env::consts::ARCH)); + format!("{} CPU", std::env::consts::ARCH) } /// An object that simulates sky-model visibilities.