Skip to content

Commit

Permalink
Handle unwrap when link line is empty
Browse files Browse the repository at this point in the history
nostd crates do not provide a link-line, return an empty one.

Fixes #394.
  • Loading branch information
kalhartt authored and lu-zero committed Sep 4, 2024
1 parent 5582365 commit 3a8b13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ pub fn cbuild(
.unwrap()
.values()
.next()
.unwrap()
.map_or("", |s| s)
.to_string()
};
let capi_config = &cpkg.capi_config;
Expand Down

0 comments on commit 3a8b13d

Please sign in to comment.