Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/as-upd-rust' into as-upd-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
ggwpez committed Sep 18, 2024
2 parents 7ba5dc7 + 956fc46 commit 373beb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions substrate/utils/frame/benchmarking-cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ pub fn main() {
if let Ok(opt_level) = env::var("OPT_LEVEL") {
println!("cargo:rustc-cfg=build_opt_level={:?}", opt_level);
} else {
println!("cargo:rustc-cfg=build_opt_level={:?}", "uknown");
println!("cargo:rustc-cfg=build_opt_level={:?}", "unknown");
}
if let Ok(profile) = env::var("PROFILE") {
println!("cargo:rustc-cfg=build_profile={:?}", profile);
} else {
println!("cargo:rustc-cfg=build_profile={:?}", "uknown");
println!("cargo:rustc-cfg=build_profile={:?}", "unknown");
}
}
2 changes: 1 addition & 1 deletion substrate/utils/wasm-builder/src/wasm_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ fn project_enabled_features(
// we need to check if the feature is enabled by checking the env variable.
*f != "std" &&
*f != "default" &&
env::var(format!("CARGO_FEATURE_{}", feature_env))
env::var(format!("CARGO_FEATURE_{feature_env}"))
.map(|v| v == "1")
.unwrap_or_default()
})
Expand Down

0 comments on commit 373beb6

Please sign in to comment.