Implement Clone for CookieJar, PrivateCookieJar and SignedCookieJar (#1808)

This commit is contained in:
Dan Handrea
2023-03-03 11:13:25 +00:00
committed by GitHub
parent aa2cbf6920
commit e167cfc325
4 changed files with 25 additions and 1 deletions
+10
View File
@@ -301,3 +301,13 @@ impl<'a, K> Iterator for PrivateCookieJarIter<'a, K> {
}
}
}
impl<K> Clone for PrivateCookieJar<K> {
fn clone(&self) -> Self {
Self {
jar: self.jar.clone(),
key: self.key.clone(),
_marker: self._marker,
}
}
}