Fix clippy warnings
Fix linter warning from clippy about unnecessary borrows - "This expression borrows a reference ... that is immediately dereferenced by the compiler"
This commit is contained in:
committed by
Martin Algesten
parent
eb04d96af8
commit
4665b0aa5a
@@ -113,7 +113,7 @@ impl ConnectionPool {
|
||||
|
||||
// Remove the newest matching PoolKey from self.lru. That
|
||||
// corresponds to the stream we just removed from `recycle`.
|
||||
remove_last_match(&mut inner.lru, &key)
|
||||
remove_last_match(&mut inner.lru, key)
|
||||
.expect("invariant failed: key in recycle but not in lru");
|
||||
|
||||
debug!("pulling stream from pool: {:?} -> {:?}", key, stream);
|
||||
|
||||
Reference in New Issue
Block a user