mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +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>
This commit is contained in:
parent
47ef0d2470
commit
09dd2bc388
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,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