Skip to content

Commit

Permalink
Fix mutliple authors separator (#302)
Browse files Browse the repository at this point in the history
Fix multiple authors separator for `CARGO_PKG_AUTHORS` environment variable.
According to docs correct separator is colon `:`.
  • Loading branch information
juhaku committed Sep 26, 2022
1 parent 9840c62 commit 513f66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utoipa-gen/src/openapi/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn get_parsed_author(author: Option<&str>) -> Option<(&str, String)> {
}

fn get_contact(authors: &str) -> TokenStream2 {
if let Some((name, email)) = get_parsed_author(authors.split(',').into_iter().next()) {
if let Some((name, email)) = get_parsed_author(authors.split(':').into_iter().next()) {
quote! {
utoipa::openapi::ContactBuilder::new()
.name(Some(#name))
Expand Down

0 comments on commit 513f66d

Please sign in to comment.