Skip to content

Commit

Permalink
add .clone() to self.series.issn_digital.as_ref() to prevent error, r…
Browse files Browse the repository at this point in the history
…enamed migrations
  • Loading branch information
brendan-oconnell committed Apr 16, 2024
1 parent 7030dad commit 6ea6c7d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions thoth-export-server/src/marc21/marc21record_thoth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,10 @@ impl Marc21Field<Marc21RecordThoth> for WorkIssues {
})
.and_then(|f|
self.series.issn_digital.as_ref()
.map_or(Ok(f), |issn_digital| f.add_subfield(b"x", issn_digital.as_bytes())))
.map_or(Ok(f.clone()), |issn_digital| f.add_subfield(b"x", issn_digital.as_bytes())))
.and_then(|f|
self.series.issn_print.as_ref()
.map_or(Ok(f), |issn_print| f.add_subfield(b"x", issn_print.as_bytes())))
.map_or(Ok(f.clone()), |issn_print| f.add_subfield(b"x", issn_print.as_bytes())))
.and_then(|f| builder.add_field(f))?;
}
Ok(())
Expand Down

0 comments on commit 6ea6c7d

Please sign in to comment.