Skip to content

Commit 488d4f6

Browse files
committed
Slightly simplify
1 parent 5e6b808 commit 488d4f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zng/cmake.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ pub fn build_zlib_ng(target: &str, compat: bool) {
1818
// Check if we should pass on an explicit boolean value of the WITH_RVV build option.
1919
// See: https://github.com/zlib-ng/zlib-ng?tab=readme-ov-file#advanced-build-options
2020
if let Ok(value) = env::var("RISCV_WITH_RVV") {
21-
let value = value.trim().to_uppercase();
22-
match value.as_str() {
21+
match value.trim().to_uppercase().as_str() {
2322
"OFF" | "NO" | "FALSE" | "0" => {
2423
// Force RVV off. This turns off RVV entirely, as well as the runtime check for it.
2524
// This is not usually necessary, but can be useful for building binaries portable

0 commit comments

Comments
 (0)