From 3a8b13d966e9055cf545edecfd7a9a4b12db5380 Mon Sep 17 00:00:00 2001 From: Alex Hartsell Date: Wed, 4 Sep 2024 15:57:56 -0500 Subject: [PATCH] Handle unwrap when link line is empty nostd crates do not provide a link-line, return an empty one. Fixes #394. --- src/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.rs b/src/build.rs index 32c4ea1..8e3470a 100644 --- a/src/build.rs +++ b/src/build.rs @@ -1158,7 +1158,7 @@ pub fn cbuild( .unwrap() .values() .next() - .unwrap() + .map_or("", |s| s) .to_string() }; let capi_config = &cpkg.capi_config;