1 parent 4febe32 commit 9ad4adbCopy full SHA for 9ad4adb
1 file changed
src/lib.rs
@@ -102,7 +102,7 @@ impl Cookies {
102
}
103
104
/// Returns the [`Cookie`] with the given name. Returns [`None`] if it doesn't exist.
105
- pub fn get(&self, name: &str) -> Option<Cookie> {
+ pub fn get(&self, name: &str) -> Option<Cookie<'_>> {
106
let mut inner = self.inner.lock();
107
inner.jar().get(name).cloned()
108
@@ -123,7 +123,7 @@ impl Cookies {
123
///
124
/// This method collects [`Cookie`]s into a vector instead of iterating through them to
125
/// minimize the mutex locking time.
126
- pub fn list(&self) -> Vec<Cookie> {
+ pub fn list(&self) -> Vec<Cookie<'_>> {
127
128
inner.jar().iter().cloned().collect()
129
0 commit comments