We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98716f commit ce4a2f6Copy full SHA for ce4a2f6
src/state/certificate.rs
@@ -77,10 +77,10 @@ where
77
type Target<A: Allocator + Clone> = CertificateContextInner<A>;
78
79
fn try_clone_in<A: Allocator + Clone>(&self, alloc: A) -> Result<Self::Target<A>, AllocError> {
80
- let state = if self.is_ready() {
81
- CertificateState::Ready
+ let (state, next) = if self.is_ready() {
+ (CertificateState::Ready, self.next)
82
} else {
83
- CertificateState::Pending
+ (CertificateState::Pending, Default::default())
84
};
85
86
let mut chain = Vec::new_in(alloc.clone());
@@ -99,7 +99,7 @@ where
99
chain,
100
pkey,
101
valid: self.valid.clone(),
102
- next: self.next,
+ next,
103
})
104
}
105
0 commit comments