From 07ca6382bc1ae08984c21034b8033cee3eb147c7 Mon Sep 17 00:00:00 2001 From: Linda_pp Date: Wed, 21 Aug 2024 22:46:23 +0900 Subject: [PATCH] fix: fix separator of `CARGO_PKG_AUTHORS` value in `from_cargo_metadata` macro (#213) --- .changes/fix_cargo_pkg_authors_value_sep.md | 5 +++++ src/about_metadata.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/fix_cargo_pkg_authors_value_sep.md diff --git a/.changes/fix_cargo_pkg_authors_value_sep.md b/.changes/fix_cargo_pkg_authors_value_sep.md new file mode 100644 index 00000000..82d2a49a --- /dev/null +++ b/.changes/fix_cargo_pkg_authors_value_sep.md @@ -0,0 +1,5 @@ +--- +"muda": "patch" +--- + +Fix handling the separator of `CARGO_PKG_AUTHORS` environment variable value in `from_cargo_metadata` macro. diff --git a/src/about_metadata.rs b/src/about_metadata.rs index 6134519f..15f6539e 100644 --- a/src/about_metadata.rs +++ b/src/about_metadata.rs @@ -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<_>>();