CI: Fix lifetime annotation warnings in vtable/vrc crates

Amends de81fa1dba
This commit is contained in:
Simon Hausmann 2025-06-06 11:59:43 +02:00
parent 114a7853b2
commit 43ecb0ffb9
2 changed files with 2 additions and 2 deletions

View file

@ -526,7 +526,7 @@ impl<Base, T: ?Sized + VTableMeta> VOffset<Base, T, AllowPin> {
/// Apply this offset to a reference to the base to obtain a `Pin<VRef<'a, T>>` with the same /// Apply this offset to a reference to the base to obtain a `Pin<VRef<'a, T>>` with the same
/// lifetime as the base lifetime /// lifetime as the base lifetime
#[inline] #[inline]
pub fn apply_pin(self, base: Pin<&Base>) -> Pin<VRef<T>> { pub fn apply_pin(self, base: Pin<&Base>) -> Pin<VRef<'_, T>> {
let ptr = base.get_ref() as *const Base as *mut u8; let ptr = base.get_ref() as *const Base as *mut u8;
unsafe { unsafe {
Pin::new_unchecked(VRef::from_raw( Pin::new_unchecked(VRef::from_raw(

View file

@ -232,7 +232,7 @@ impl<VTable: VTableMetaDropInPlace, X> VRc<VTable, X> {
/// ///
/// This is safe because there is no way to access a mutable reference to the pointee. /// This is safe because there is no way to access a mutable reference to the pointee.
/// (There is no `get_mut` or `make_mut`), /// (There is no `get_mut` or `make_mut`),
pub fn borrow_pin(this: &Self) -> Pin<VRef<VTable>> { pub fn borrow_pin(this: &Self) -> Pin<VRef<'_, VTable>> {
unsafe { Pin::new_unchecked(Self::borrow(this)) } unsafe { Pin::new_unchecked(Self::borrow(this)) }
} }