mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
rusticl/ptr: Fix hidden lifetime warning
error: hiding a lifetime that's elided elsewhere is confusing
--> ../src/gallium/frontends/rusticl/util/ptr.rs:166:18
|
166 | pub fn entry(&mut self, ptr: P) -> Entry<P, T> {
| ^^^^^^^^^ ----------- the same lifetime is hidden here
| |
| the lifetime is elided here
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36747>
(cherry picked from commit 09dd2bc388)
This commit is contained in:
parent
758d265826
commit
78fec891a5
2 changed files with 2 additions and 2 deletions
|
|
@ -244,7 +244,7 @@
|
|||
"description": "rusticl/ptr: Fix hidden lifetime warning",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ where
|
|||
self.ptrs.contains_key(&ptr)
|
||||
}
|
||||
|
||||
pub fn entry(&mut self, ptr: P) -> Entry<P, T> {
|
||||
pub fn entry(&mut self, ptr: P) -> Entry<'_, P, T> {
|
||||
self.ptrs.entry(ptr)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue