Skip to content

Commit

Permalink
fix: fix separator of CARGO_PKG_AUTHORS value in `from_cargo_metada…
Browse files Browse the repository at this point in the history
…ta` macro (#213)
  • Loading branch information
rhysd authored Aug 21, 2024
1 parent 858167f commit 07ca638
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix_cargo_pkg_authors_value_sep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"muda": "patch"
---

Fix handling the separator of `CARGO_PKG_AUTHORS` environment variable value in `from_cargo_metadata` macro.
2 changes: 1 addition & 1 deletion src/about_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ macro_rules! from_cargo_metadata {
#[cfg(not(target_os = "macos"))]
{
let authors = env!("CARGO_PKG_AUTHORS")
.split(';')
.split(':')
.map(|a| a.trim().to_string())
.collect::<::std::vec::Vec<_>>();

Expand Down

0 comments on commit 07ca638

Please sign in to comment.