summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-06 19:58:21 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:58 +0200
commit9424cd350f32a97479a74d919c646f9e26c2ebce (patch)
treee7b62ae2693ccbcb73d74cacabbf6c9a31a4552e /openpgp-ffi
parentec5129c0863962dd3ee32b6af29be45d4d979193 (diff)
Lint: Use lazy evaluation.
- https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
Diffstat (limited to 'openpgp-ffi')
-rw-r--r--openpgp-ffi/tests/c-tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/tests/c-tests.rs b/openpgp-ffi/tests/c-tests.rs
index 30dc3bc8..33a52261 100644
--- a/openpgp-ffi/tests/c-tests.rs
+++ b/openpgp-ffi/tests/c-tests.rs
@@ -229,7 +229,7 @@ fn build(include_dirs: &[PathBuf], ldpath: &Path, target_dir: &Path,
.collect::<Vec<String>>().join(" ");
let st = Command::new("make")
.env("CFLAGS", &format!("-Wall -O0 -ggdb {} {}", includes,
- env::var("CFLAGS").unwrap_or("".into())))
+ env::var("CFLAGS").unwrap_or_else(|_| "".into())))
.env("LDFLAGS", &format!("-L{:?}", ldpath))
.env("LDLIBS", "-lsequoia_openpgp_ffi")
.arg("-C").arg(&target_dir)