From 513f213a4a626153cc74cbbf736fa7b11f20c3d8 Mon Sep 17 00:00:00 2001 From: Rushmore Mushambi Date: Sat, 7 Jan 2023 15:57:20 +0200 Subject: [PATCH] Fix version string (#1585) --- lib/src/env/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/env/mod.rs b/lib/src/env/mod.rs index 8d467d2f..5d388e12 100644 --- a/lib/src/env/mod.rs +++ b/lib/src/env/mod.rs @@ -3,11 +3,11 @@ pub const VERSION: &str = env!("CARGO_PKG_VERSION"); /// The operating system of the current machine pub fn os() -> &'static str { - get_cfg!(os: "windows", "macos", "ios", "linux", "android", "freebsd", "openbsd", "netbsd"); - os() + get_cfg!(target_os: "windows", "macos", "ios", "linux", "android", "freebsd", "openbsd", "netbsd"); + target_os() } /// The system architecture of the current machine pub fn arch() -> &'static str { - get_cfg!(arch: "x86", "x86_64", "mips", "powerpc", "powerpc64", "arm", "aarch64"); - arch() + get_cfg!(target_arch: "x86", "x86_64", "mips", "powerpc", "powerpc64", "arm", "aarch64"); + target_arch() }