[windows_kext] Fix clippy warnings

This commit is contained in:
Vladimir Stoilov
2024-06-04 14:55:29 +03:00
parent b72cf2577a
commit 9fe140bd02
5 changed files with 8 additions and 10 deletions

View File

@@ -59,7 +59,7 @@ impl ConnectionCache {
process_connection: fn(&ConnectionV4) -> Option<T>,
) -> Option<T> {
let _guard = self.lock_v4.read_lock();
self.connections_v4.read(&key, process_connection)
self.connections_v4.read(key, process_connection)
}
pub fn read_connection_v6<T>(
@@ -68,7 +68,7 @@ impl ConnectionCache {
process_connection: fn(&ConnectionV6) -> Option<T>,
) -> Option<T> {
let _guard = self.lock_v6.read_lock();
self.connections_v6.read(&key, process_connection)
self.connections_v6.read(key, process_connection)
}
pub fn end_connection_v4(&mut self, key: Key) -> Option<ConnectionV4> {