Skip to content

Commit 9ad4adb

Browse files
committed
chore: clippy
1 parent 4febe32 commit 9ad4adb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl Cookies {
102102
}
103103

104104
/// Returns the [`Cookie`] with the given name. Returns [`None`] if it doesn't exist.
105-
pub fn get(&self, name: &str) -> Option<Cookie> {
105+
pub fn get(&self, name: &str) -> Option<Cookie<'_>> {
106106
let mut inner = self.inner.lock();
107107
inner.jar().get(name).cloned()
108108
}
@@ -123,7 +123,7 @@ impl Cookies {
123123
///
124124
/// This method collects [`Cookie`]s into a vector instead of iterating through them to
125125
/// minimize the mutex locking time.
126-
pub fn list(&self) -> Vec<Cookie> {
126+
pub fn list(&self) -> Vec<Cookie<'_>> {
127127
let mut inner = self.inner.lock();
128128
inner.jar().iter().cloned().collect()
129129
}

0 commit comments

Comments
 (0)