Skip to content

Commit

Permalink
Apply requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DerDrodt committed Oct 2, 2024
1 parent a290fc7 commit af33b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,7 @@ entry! {
#[serde(serialize_with = "serialize_one_or_many_opt")]
#[serde(deserialize_with = "deserialize_one_or_many_opt")]
"affiliated" => affiliated: Vec<PersonsWithRoles> | [PersonsWithRoles],
/// Publisher of the item. May be a string or a dictionary with `name` and
/// `location` (both strings).
/// Publisher of the item, which may have a name and a location.
"publisher" => publisher: Publisher,
/// Physical location at which the event took place.
"location" => location: FormatString,
Expand Down
1 change: 1 addition & 0 deletions src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ impl Publisher {
impl FromStr for Publisher {
type Err = ChunkedStrParseError;

/// Creates a new publisher with `s` as its name and no location.
fn from_str(s: &str) -> Result<Self, Self::Err> {
Ok(Publisher::new(Some(FormatString::from_str(s)?), None))
}
Expand Down

0 comments on commit af33b9e

Please sign in to comment.