Skip to content

Commit

Permalink
Replace unwrap with expect in build.rs to make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
koute committed Mar 27, 2023
1 parent 0db286b commit d0a3709
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit d0a3709

Please sign in to comment.