2
0
mirror of https://github.com/jedisct1/encrypted-dns-server synced 2024-11-12 13:10:44 +00:00

Explicit lifetime

This commit is contained in:
Frank Denis 2019-10-20 11:45:27 +02:00
parent dbbdf984e9
commit 05d62da515

View File

@ -58,7 +58,7 @@ impl Cache {
}
#[inline]
pub fn lock(&self) -> MutexGuard<ClockProCache<u128, CachedResponse>> {
pub fn lock(&self) -> MutexGuard<'_, ClockProCache<u128, CachedResponse>> {
self.cache.lock()
}
}