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:
David Rosca 2025-08-12 17:47:46 +02:00 committed by Marge Bot
parent 47ef0d2470
commit 09dd2bc388

View file

@ -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)
}