From d0a3709e1d09aa0553df704586afd52b6d2655d8 Mon Sep 17 00:00:00 2001 From: Jan Bujak Date: Tue, 21 Mar 2023 13:37:23 +0000 Subject: [PATCH] Replace `unwrap` with `expect` in build.rs to make Clippy happy --- build.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 453b1014c..80c0eb1fb 100644 --- a/build.rs +++ b/build.rs @@ -20,7 +20,11 @@ fn main() { DalekBits::Dalek32 => println!("cargo:rustc-cfg=curve25519_dalek_bits=\"32\""), } - if rustc_version::version_meta().unwrap().channel == rustc_version::Channel::Nightly { + if rustc_version::version_meta() + .expect("failed to detect rustc version") + .channel + == rustc_version::Channel::Nightly + { println!("cargo:rustc-cfg=nightly"); } }