mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
Janitor: Remove unnecessary lifetimes
This commit is contained in:
parent
08a6dc02fc
commit
2fdfbae33e
2 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue