From c8b09b50c9034fac4215bcd69543ac875b7056d2 Mon Sep 17 00:00:00 2001 From: Brendan O'Connell Date: Tue, 16 Apr 2024 15:30:25 +0200 Subject: [PATCH] Fixed formatting errors --- .../src/marc21/marc21record_thoth.rs | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/thoth-export-server/src/marc21/marc21record_thoth.rs b/thoth-export-server/src/marc21/marc21record_thoth.rs index 88772b13..d90740f4 100644 --- a/thoth-export-server/src/marc21/marc21record_thoth.rs +++ b/thoth-export-server/src/marc21/marc21record_thoth.rs @@ -634,12 +634,22 @@ impl Marc21Field for WorkIssues { .and_then(|f| { f.add_subfield(b"v", format!("vol. {}.", self.issue_ordinal).as_bytes()) }) - .and_then(|f| - self.series.issn_digital.as_ref() - .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.clone()), |issn_print| f.add_subfield(b"x", issn_print.as_bytes()))) + .and_then(|f| { + self.series + .issn_digital + .as_ref() + .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.clone()), |issn_print| { + f.add_subfield(b"x", issn_print.as_bytes()) + }) + }) .and_then(|f| builder.add_field(f))?; } Ok(())