diff --git a/src/state/certificate.rs b/src/state/certificate.rs index 3e3b362..69cc3df 100644 --- a/src/state/certificate.rs +++ b/src/state/certificate.rs @@ -77,10 +77,10 @@ where type Target = CertificateContextInner; fn try_clone_in(&self, alloc: A) -> Result, AllocError> { - let state = if self.is_ready() { - CertificateState::Ready + let (state, next) = if self.is_ready() { + (CertificateState::Ready, self.next) } else { - CertificateState::Pending + (CertificateState::Pending, Default::default()) }; let mut chain = Vec::new_in(alloc.clone()); @@ -99,7 +99,7 @@ where chain, pkey, valid: self.valid.clone(), - next: self.next, + next, }) } }