Explorar o código

fix(core): properly check `CARGO_FEATURE_` env vars

Lucas Nogueira %!s(int64=3) %!d(string=hai) anos
pai
achega
2189416a76
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/tauri/build.rs

+ 1 - 1
core/tauri/build.rs

@@ -21,7 +21,7 @@ fn has_feature(feature: &str) -> bool {
   // https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts
   std::env::var(format!(
     "CARGO_FEATURE_{}",
-    feature.to_uppercase().to_snake_case()
+    feature.to_snake_case().to_uppercase()
   ))
   .map(|x| x == "1")
   .unwrap_or(false)