mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-03 00:00:07 +02:00
Implement Clone for CookieJar, PrivateCookieJar and SignedCookieJar (#1808)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user