mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
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:
parent
98df65a875
commit
1519ff7ebd
1 changed files with 1 additions and 1 deletions
|
|
@ -1195,7 +1195,7 @@ impl Mem {
|
||||||
lock: &'a mut MutexGuard<Mappings>,
|
lock: &'a mut MutexGuard<Mappings>,
|
||||||
rw: RWFlags,
|
rw: RWFlags,
|
||||||
) -> CLResult<&'a PipeTransfer> {
|
) -> 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() {
|
let (tx, res) = if self.is_buffer() {
|
||||||
self.tx_raw_async(dev, rw)?
|
self.tx_raw_async(dev, rw)?
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue