Skip to content

Commit b72ad8c

Browse files
committed
Fix clippy warning.
1 parent fb31914 commit b72ad8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/crates/soroban-test/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn set_protocol_features() {
1515
println!("cargo:rustc-cfg=feature=\"version_gte_23\"");
1616
}
1717

18-
if major_version < 23 && !std::env::var("CARGO_FEATURE_VERSION_GTE_23").is_ok() {
18+
if major_version < 23 && std::env::var("CARGO_FEATURE_VERSION_GTE_23").is_err() {
1919
println!("cargo:rustc-cfg=feature=\"version_lt_23\"");
2020
}
2121
}

cmd/soroban-cli/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn set_protocol_features() {
1616
println!("cargo:rustc-cfg=feature=\"version_gte_23\"");
1717
}
1818

19-
if major_version < 23 && !std::env::var("CARGO_FEATURE_VERSION_GTE_23").is_ok() {
19+
if major_version < 23 && std::env::var("CARGO_FEATURE_VERSION_GTE_23").is_err() {
2020
println!("cargo:rustc-cfg=feature=\"version_lt_23\"");
2121
}
2222
}

0 commit comments

Comments
 (0)