diff --git a/src/rdata/zonemd.rs b/src/rdata/zonemd.rs index e8993c11a..0b6fca822 100644 --- a/src/rdata/zonemd.rs +++ b/src/rdata/zonemd.rs @@ -6,7 +6,6 @@ use crate::base::cmp::CanonicalOrd; use crate::base::iana::Rtype; -use crate::base::name::PushError; use crate::base::rdata::{ComposeRecordData, RecordData}; use crate::base::scan::{Scan, Scanner}; use crate::base::serial::Serial; @@ -114,23 +113,10 @@ impl Zonemd { }) } - pub fn flatten_into(self) -> Result, PushError> - where - OO: OctetsFrom, - { - let Zonemd { - serial, - scheme, - algo, - digest, - } = self; - - Ok(Zonemd { - serial, - scheme, - algo, - digest: digest.try_octets_into().map_err(Into::into)?, - }) + pub(super) fn flatten>( + self + ) -> Result, Target::Error> { + self.convert_octets() } pub(super) fn convert_octets>(