rusticl/memory: fix new clippy::needless-borrow warning

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Antonio Gomes <antoniospg100@gmail.com>
Reviewed-by: @LingMan <18294-LingMan@users.noreply.gitlab.freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26051>
This commit is contained in:
Karol Herbst 2023-11-06 16:09:17 +01:00 committed by Marge Bot
parent 98df65a875
commit 1519ff7ebd

View file

@ -1195,7 +1195,7 @@ impl Mem {
lock: &'a mut MutexGuard<Mappings>,
rw: RWFlags,
) -> CLResult<&'a PipeTransfer> {
if let Entry::Vacant(e) = lock.tx.entry(&dev) {
if let Entry::Vacant(e) = lock.tx.entry(dev) {
let (tx, res) = if self.is_buffer() {
self.tx_raw_async(dev, rw)?
} else {