Module: Mesa Branch: main Commit: 1519ff7ebd65af25dbbd61d8ef27f878fbeb98f9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1519ff7ebd65af25dbbd61d8ef27f878fbeb98f9
Author: Karol Herbst <[email protected]> Date: Mon Nov 6 16:09:17 2023 +0100 rusticl/memory: fix new clippy::needless-borrow warning Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Antonio Gomes <[email protected]> Reviewed-by: @LingMan <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26051> --- src/gallium/frontends/rusticl/core/memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/core/memory.rs b/src/gallium/frontends/rusticl/core/memory.rs index 49acefc2e4e..b0a56832faa 100644 --- a/src/gallium/frontends/rusticl/core/memory.rs +++ b/src/gallium/frontends/rusticl/core/memory.rs @@ -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 {
