From e1184abb1b7d99a67ec14af2c52b1133be6a0856 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Sun, 22 Sep 2024 07:54:17 -0400 Subject: [PATCH] Tweak string conversion for MSRV compatibility --- zng/cmake.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zng/cmake.rs b/zng/cmake.rs index 6bfc949..b4779fc 100644 --- a/zng/cmake.rs +++ b/zng/cmake.rs @@ -22,7 +22,7 @@ pub fn build_zlib_ng(target: &str, compat: bool) { .map(OsStr::to_str) .map(str::trim) .map(str::to_uppercase) - .map(Into::into) + .as_deref() { Some("OFF" | "NO" | "FALSE" | "0") => { // Force RVV off. This turns off RVV entirely, as well as the runtime check for it.