Janitor: Remove unnecessary lifetimes

This commit is contained in:
Tobias Hunger 2021-07-08 19:40:25 +02:00 committed by Simon Hausmann
parent 08a6dc02fc
commit 2fdfbae33e
2 changed files with 2 additions and 2 deletions

View file

@ -530,7 +530,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
/// lifetime as the base lifetime
#[inline]
pub fn apply_pin<'a>(self, base: Pin<&'a Base>) -> Pin<VRef<'a, T>> {
pub fn apply_pin(self, base: Pin<&Base>) -> Pin<VRef<T>> {
let ptr = base.get_ref() as *const Base as *mut u8;
unsafe {
Pin::new_unchecked(VRef::from_raw(